currency angular
//I solved this way:
//app.module.ts
import { LOCALE_ID } from '@angular/core';
import localePt from '@angular/common/locales/pt';
import {registerLocaleData} from '@angular/common';
registerLocaleData(localePt)
providers: [{
provide: LOCALE_ID,
useValue: "pt-BR"
}],
//.html
currency:'BRL'
{{ value_expression | currency [ : currencyCode [ : display [ : digitsInfo [ : locale ] ] ] ] }}
Also in JavaScript:
- how to fix eslint jsx not allowed in js
- react native text input next field hooks focus
- ISS proxy express
- react native search bar
- import jquery into js file
- sweet alert 2 do action on confirm
- javascript negative infinity
- nodejs mysql error handling with user example
- jQuery select immediate children
- what is promise in javascript
- replace array element javascript stack overflow
- how to check request type in js
- how to remove event listener in jquery
- how to create monorapo project in angular 8
- how to read a csv file in nodejs
- negative reciprocal javascript
- how to append object in array javascript
- javascript set element width
- how can when click buton scrool to another elemtn
- if isset handlebars js
- jquery get value radio by name
- findindex js
- round number 2 decimals javascript
- javascript canvas ground zero