0.0.1 • Published 7 years ago

ng-unit-pipe v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

ng-unit-pipe

Unit conversion pipe for Angular based on math.js library

Installation

  1. Use npm to install the package

    $ npm install ng-unit-pipe --save 
  2. You must add into your module imports the UnitPipeModule 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