While I have experience using angular filters for formatting primitive values like numbers into currency formats, I am now faced with the challenge of applying the same filtering to an array of values. For example:
price = 1
prices = [1,2,3]
If I were to utilize the currency filter provided in https://docs.angularjs.org/api/ng/filter/currency, then:
{{price | currency}}
would result in $1.00.
My goal is to achieve a similar output when applying the currency filter to an array, such as:
{{prices | currency}}
and expect [$1.00,$2.00,$3.00] as the desired outcome. How can I create a filter to achieve this or should I explore alternative solutions?
A bit more context - I am working with this array within the angular-selectize plugin, where using ng-repeat on my values is not feasible.