Skip to content

SG2B/ng-unit-pipe

Repository files navigation

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 
  1. 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

About

Angular pipe that enable unit conversion

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published