TutorialLesson 3Free preview
AngularJS Expressions
This lesson is part of AngularJS · All levels
Summary
AngularJS expressions are written with two curly braces and are evaluated against current scope. Expressions can be computations, property of objects, even calling the controller function. But keep in mind that expressions don't have full type security like JavaScript, for example, can't use a statement if.
Key points
- {{expression}} displays the value of the evaluation results on the scope
- Expressions support mathematical operations and property access
- Statements like if and for are invalid in the expression
- Filters are added with pipe markings, for example
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.