July 2017
Intermediate to advanced
384 pages
8h 23m
English
A template tells Angular how to render the component's view. Templates are HTML snippets with the specific Angular's template syntax, such as interpolation, property, attribute, and event bindings, built-in directives, and pipes to mention just a few. We will give you a quick overview of the template syntax starting with interpolation. Interpolation is used to evaluate expressions in double curly braces. The evaluated expression is then converted to a string. The expression can contain any mathematical calculations, component's properties and methods, and many more:
<p>Selected car is {{currentCar.model}}</p>
Angular evaluates template expressions after every change detection cycle. Change detection cycles are triggered ...
Read now
Unlock full access