
Learning Angular
By :

As we have learned, creating an Angular component using the Angular CLI involves generating a set of accompanying files. One of these files is the component template containing the HTML content displayed on the page. In this section, we will explore how to display and interact with the template through the following topics:
We will start our journey in the component template by exploring how we render a component on the web page.
We learned that Angular uses the selector
property to load the component in an HTML template. A typical Angular application loads the template of the main component at application startup. The <app-root>
tag we saw in Chapter 1, Building Your First Angular Application, is the selector
of the main application component.
To load a component we have created, such as the...