Custom component routes and child routes

In previous sections, so far we have learned about the various usage of the router; it's now time to use all our knowledge to put together a sample demo application using all the routing examples. We will now create a custom component and define its route file with child routes.

We will create an unordered list of items called Products, which will have linked list items that are child products. Clicking on the respective product link, the user will be displayed the product details.

The application navigation plan looks as follows:

We have in previous sections learned to define and create routes in ...

Get Expert Angular now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.