← BYTES
AngularJS·Starter·Ref: 5.1.14

In AngularJS, what is a filter used for in an expression like {{ price | currency }}?

Have a question about this video? Mention reference 5.1.14 when you contact us.

a.It deletes the price value entirely
b.It validates that price is a positive number only
c.It transforms the displayed value -- here, formatting a raw number as a currency string -- without changing the underlying data
d.It converts the expression into a directive
Filters take an input value and a pipe (|) syntax and produce a transformed output purely for display purposes -- currency, date, and uppercase are common built-in filters, and the underlying scope value itself is left untouched.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES5114#AngularJS