Filters Flashcards

1
Q

currency

A

Formats a number as a currency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

date

A

Formats a number as a date. E.g. {{1288323623006 | date:’yyyy-MM-dd HH:mm:ss Z’}}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

html

A

Prevents the input from getting escaped by angular.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

json

A

Converts a JavaScript object into JSON string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

linky

A

Turns links into html links.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

lowercase

A

Lowercases a string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

number

A

Formats a number as text Usage: {{number_expression| number[:fractionSize] }}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Formats a number as a currency.

A

currency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Formats a number as a date. E.g. {{1288323623006 | date:’yyyy-MM-dd HH:mm:ss Z’}}

A

date

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Prevents the input from getting escaped by angular.

A

html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Converts a JavaScript object into JSON string.

A

json

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Turns links into html links.

A

linky

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Lowercases a string.

A

lowercase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Formats a number as text Usage: {{number_expression| number[:fractionSize] }}

A

number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Filter skeleton

A

Html
{{ filter_expression | filter : expression : comparator}}

Javascript
$filter(‘filter’)(array, expression, comparator)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Custom filter skeleton

A

angular.filter(<name>,<br></br>function(input[,additional params]) {<br></br> return uiValue;<br></br> }<br></br>);</name>