In Angular Component post, we have seen that a component consists HTML template, component class, and Metadata. In this post we will see the HTML template in detail-
Html template is nothing but regular Html code with some additional Angular syntax to communicate with the component class.
Angular API interprets the HTML template of a component and generates the HTML and renders it. We can declare the HTML template of a component in two ways-
- Inline Template
- Linked Template