ngx-persian-pipe
v0.1.7
Published
Persian pipes for Angular 2+ applications.
Downloads
40
Maintainers
Readme
ngx-persian-pipe
Persian pipes for Angular 2+ applications.
Install
npm install ngx-persian-pipe --save
Usage
Import PersianPipesModule into your app.module.ts as follows:
import { PersianPipesModule } from 'ngx-persian-pipe';
imports: [
BrowserModule,
PersianPipesModule
],
##Examples: Use in your app templates as follows:
{{'123' | perNumber}} // output => ۱۲۳
{{'۱۲۳' | perToEngNumber}} // output => 123
{{'123' | numToPerWord}} // => صد و بیست و سه
{{'-123123123' | moneyFormatter: 'IRR'}} // => -۱۲۳,۱۲۳,۱۲۳ ریال {{'123123123' | moneyFormatter}} // => ۱۲۳,۱۲۳,۱۲۳
Contribute
- install nodejs and npm.
- install @angular/cli.
- clone the project.
- Run the following command on ngx-persian-pipe folder:
npm install
- Run the following command to serve the project:
ng serve
License
MIT © Farhang Darzi