# ng2-calc

> Do some basic calculation by using call simple functions

Latest version **1.0.1** (published 2018-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng2-calc
pnpm add ng2-calc
yarn add ng2-calc
bun add ng2-calc
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-01-10 |
| First published | 2018-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+8 in 1 direct dependencies) |
| Install scripts | no |
| Author | Tushar Goel |
| Maintainers | tushargoel |

## Links

- npm: https://www.npmjs.com/package/ng2-calc
- npm.io page: https://npm.io/package/ng2-calc

## Dependencies (4)

- [rxjs](https://npm.io/package/rxjs.md) ^5.0.1
- [zone.js](https://npm.io/package/zone.js.md) ^0.7.2
- [@angular/core](https://npm.io/package/@angular/core.md) ^2.4.0
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.8

## Recent versions

- 1.0.1 (latest) — 2018-01-10

## 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);

}

}

---
_Source: https://npm.io/package/ng2-calc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
