In this section, we will create another route to this application so that we can view an individual post. This time, however, we will make this route a lazy loaded route. To create a lazy loaded route, we need to add a new module, which is also called as feature module. Let's create a post module first by using the following command:
> ng g m post --routing
Now, we will create a component with the routing flag, which will also create a routing module for this component, and add it to the post module:
> ng g c post -m post
Now that component and module have been created, it's time to link the route to the post-module, and then post the routing module to the post component. A lazily loaded route is defined using loadChildren. Let's add the following code to the routes of app-routing.module.ts...