InterviewSolution
Saved Bookmarks
| 1. |
Why would you need a Routing Module? |
|
Answer» A ROUTING module is required if the application consists of multiple components and URLs and the user is expected to navigate from one component to another. The job of the Routing Module is to interpret the browser's URL as an instruction to LOAD a specific component along with its view. The application has a main router configured and bootstrapped. This is done by passing an array of routes to RouterModule.forRoot(), and since this returns another module, it has to be added to the imports meta PROPERTY in the main application module. The RouterModule
|
|