jff-angular-tools
v1.0.1
Published
A Angular components and tools for any project based in Angular.
Downloads
9
Maintainers
Readme
JFF Angular Tools
A Open Source Angular components and tools for any project based in Angular.
How to use
Installation
npm i jff-angular-tools --save
Apply in your module
import { JffAngularToolsModule } from 'jff-angular-tools'
@NgModule({
imports: [
JffAngularToolsModule
],
})
Pipe Currency
In your component.html
<div>
{{ object.cost | jffcurrency }}
</div>
or without symbol
<div>
{{ object.cost | jffcurrency : false }}
</div>
Options Pipe Currency
| option | default
| -------------- | --------------
| displaySymbol | true
| locale | 'pt-br'
| currency | 'BRL'
| minimumFractionDigits | 0