Filters Flashcards
currency
Formats a number as a currency.
date
Formats a number as a date. E.g. {{1288323623006 | date:’yyyy-MM-dd HH:mm:ss Z’}}
html
Prevents the input from getting escaped by angular.
json
Converts a JavaScript object into JSON string.
linky
Turns links into html links.
lowercase
Lowercases a string.
number
Formats a number as text Usage: {{number_expression| number[:fractionSize] }}
Formats a number as a currency.
currency
Formats a number as a date. E.g. {{1288323623006 | date:’yyyy-MM-dd HH:mm:ss Z’}}
date
Prevents the input from getting escaped by angular.
html
Converts a JavaScript object into JSON string.
json
Turns links into html links.
linky
Lowercases a string.
lowercase
Formats a number as text Usage: {{number_expression| number[:fractionSize] }}
number
Filter skeleton
Html
{{ filter_expression | filter : expression : comparator}}
Javascript
$filter(‘filter’)(array, expression, comparator)