I have an array of prices (0, 0.99, 1.99... etc) that I want to display in .
0
0.99
1.99
I want to use Angular\
You want to create the custom filter such as:
app.filter('price', function() { return function(arr) { return arr.map(function(num){ return num === 0 ? 'free' : num + '$'; }); }; });
use it like:
{{ obj }}