angularjs expressions
TRANSCRIPT
Literals
AngularJS Expressions424.242E542e542e-5
IntegerFloating point
Scientific notation
'wat'"wat""\n\f\r\t\v\'\"\\""\u2665"
Single-quoted stringDouble-quoted string
Character escapesUnicode escapes
truefalsenullundefined
Booleans
nullundefined
[1, 2, 3][1, [2, 'three']]
{a: 1, b: 2}{'a': 1, "b": 'two'}
Arrays
Objects
Parentheses
expr; expr; expra = 1; a + b
Semicolon-separatedLast one is returned
Statements
2 * (a + b)(a || b) && c
Alter precedence order
Function Calls
Member Access
OperatorsIn order of precedence
Field lookupnested objects
Property lookup
Array lookup
aKeyaKey.otherKey.key3
aKey['otherKey']aKey[keyVar]aKey['otherKey'].key3anArray[42]
aFunction()aFunction(42, 'abc')
anObject.aFunction()anObject[fnVar]()
Function calls
Method calls
-a+a!done
a * ba / ba % b
a + ba - b
a < ba > ba <= ba >= b
a == ba != ba === ba !== b
a && b
a || b
a ? b : c
aKey = valanObject.aKey = valanArray[42] = val
a | filtera | filter1 | filter2a | filter:arg1:arg2
Unary
Multiplicative
Additive
Comparison
Equality
Locical AND
Logical OR
Ternary
Assignment
Filters
BUILD YOUR OWN ANGULARJSteropa.info/build-your-own-angular