October 2017
Intermediate to advanced
240 pages
6h 19m
English
A great feature of Angular is the capability to add JavaScript-like expressions inside an HTML template. Angular evaluates expressions and then can dynamically add the results to a web page. Expressions are linked to a component, and you can have an expression that utilizes values in the component, and its value can change as the model changes.
Using expressions is the simplest way to represent data from a component in an Angular view. Expressions are encapsulated blocks of code inside brackets, like this:
{{expression}}
The Angular compiler compiles an expression into HTML elements so that the results of the expression are displayed. For example, look at the following expressions:
{{1+5}} {{'One' + 'Two'}}
Based ...
Read now
Unlock full access