Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular Currency Filter - Symbol  added

Tags:

I'm using angular's currency filter and it seems to be outputting an extra symbol: Â.

The html:

{{totals.subtotal | currency}} {{totals.tax | currency}} {{totals.total | currency}} 

The object totals:

var totals = {subtotal: 500, tax: 65, total: 565}; 

Output:

Â$500.00 Â$65.00 Â$565.00 

Has anyone encountered this before? I'm using the latest angular 1.0.6

Update: It turns out the minification of angular caused this. When I included the non minified angular it fixed it.

like image 433
Petahhh Avatar asked Apr 15 '13 14:04

Petahhh


1 Answers

Yeah confirmed that this is uglify.

If you build it with the ascii_only=true option then it seems to resolve the problem.

like image 200
Benjamin Conlan Avatar answered Nov 20 '22 22:11

Benjamin Conlan