1.0.1 • Published 2 years ago
jff-angular-tools v1.0.1
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 --saveApply 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 |