...

/

Navigation Between Views

Navigation Between Views

In this lesson, we will perform basic routing.

In Angular, routing enables the user to navigate from one view to another as they perform different tasks on the DOM (Document Object Module). The browser identifies the first view through the URL that directs you to the first component template. Then, using different routing techniques, the URL can be modified to redirect to another component associated with that particular path. The very first step to start creating your Angular routing application is to go to the index.html file and look for the element under the head tag. This base path is appended to the path of the server. To work with routing and navigation, look at the element shown below:

<base href=“/”>

This is applicable if the application ...