47
loading...
This website collects cookies to deliver better user experience
react-router
. It involves declaring our routes as elements in our component’s template.RouterModule
at multiple layers of our application. imports
in their @Component
decorator, this could get unwieldy. It also means that we’re still relying on NgModules
, making it difficult to ever fully remove them from the framework.route-entry
. This route-entry
will contain the routes for this portion of the application. This creates a structure such as:route-entry
at the root of each domain/feature we have in our system which will define the routing for that area of the application. Now, every developer will know exactly where to look when they need to find, edit or add routes to the system.RouteEntryComonents
.