Angular 2 Template Syntax
Angular 2 Template Syntax
In the previous chapters, we have touched upon Angular templates, and this article will specifically introduce the usage of Angular syntax.
The template plays the role of a view, simply put, it is the part shown to the user.
- HTML
- Interpolation Expression
- Template Expression
- Template Statement
- Binding Syntax
- Property Binding
- Binding HTML attributes, class, and style
- Event Binding
- Using NgModel for two-way data binding
- Built-in Directives
-
- With
- Template Reference Variables
- Input and output properties
- Template expression operators
HTML
HTML is the "language" of Angular templates, besides
- With