ng2-calc
v1.0.1
Published
Do some basic calculation by using call simple functions
Downloads
12
Readme
ng2-calc
Ng-Fone module updated to work in Angular 2
To install simply run
npm install ng2-calc.
To use it in your Angular 2 app import the module in your root module(app.module.ts) as shown below.
import {Ng2CalcModule} from 'ng2-calc'; ... ... @NgModule({
imports:[ Ng2CalcModule ],
})
In your components simply import the service.
import {Ng2Calc} from 'ng2-calc'; ... ... export class yourmodule {
constructor(private Ng2Calc: Ng2Calc) {
console.log(Ng2Calc.addition(var1,var2); console.log(Ng2Calc.subtract(var1,var2); console.log(Ng2Calc.multiply(var1,var2); console.log(Ng2Calc.divide(var1,var2); console.log(Ng2Calc.modules(var1,var2);
}
}