Issue
My pipe current print :
{{ 200 | currency:'BRL':true }} = R$200.00
I need include space between R$ in 200.00 would stay correct
{{ 200 | currency:'BRL':true }} = R$ 200.00`
somebody can help me?
Solution
You could chain a custom pipe to add a space
@Pipe({
name: 'space'
})
export class SpacePipe implements PipeTransform {
transform(value: any, args?: any): any {
return value.replace('R$', 'R$ ');
}
}
{{ 200 | currency:'BRL':true | space }} // R$ 200.00
Answered By - LLai
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.