Persian Language tools for angular 4 and angular 2, based on [angular-cli](https://github.com/angular/angular-cli) and [Ng4Basic](https://gitlab.com/bitbeter/ng4-basic) which is basic project based on angular-cli that you can use for creating your own lib
Homepage Repository npm Download
npm install ng4-persian@2.0.1
Persian Language tools for angular 4 and angular 2, based on angular-cli and Ng4Basic which is basic project based on angular-cli that you can use for creating your own libraries on it.
npm install -g ng4-persian
pJalali
- Pipe
this pipe will transform date object to jalali (Shamsi) format date.
<!-- 2017/6/22 (month start from zero in Date object) -->
day = new Date(2017, 5, 22);
<p [innerText]="day | pJalali"></p>
1396/4/1
pNumber
- Pipe
this pipe will transform english number to persian number.
number = 123;
<p [innerText]="number | pNumber"></p>
۱۲۳
pDigitWords
- Pipe
this pipe will transform english number to persian words.
number = 123;
<p [innerText]="number | pDigitWords"></p>
صد و بیست و سه
This is a open-source project. Fork the project, complete the code and send pull request.
pJalali
pipe based on the jalali-moment project, and persianJs and
angular-persian ideas, which are angularJs plugins, used for creating pNumber
and pDigitWords
pipes.
pDigitWords
pipe Speed Up