ng-unit-pipe
v0.0.1
Published
> Unit conversion pipe for Angular based on math.js library
Downloads
4
Maintainers
Readme
ng-unit-pipe
Unit conversion pipe for Angular based on math.js library
Installation
- Use npm to install the package
$ npm install ng-unit-pipe --save
- You must add into your module
imports
theUnitPipeModule
in order to add the pipe.
import {UnitPipeModule} from 'ng-unit-pipe';
@NgModule({
// ...
imports: [
// ...
UnitPipeModule
]
})
Conversion are based on Math.js : http://mathjs.org/docs/expressions/parsing.html#eval