3 ms·
> Angular's routing seems to involve "one big routing config". That's wrong. You can split the routing configuration just like in react-router or Aurelia. It a
by SebastianM 9y ago
> Angular's routing seems to involve "one big routing config".
That's wrong. You can split the routing configuration just like in react-router or Aurelia. It also supports lazy loading of child routes and components. So you don't have one giant application to serve at bootup time. It is also documented really well: https://angular.io/docs/ts/latest/guide/ngmodule.html#!#lazy-load https://angular.io/docs/ts/latest/guide/ngmodule.html#!#lazy...
- sjclemmy 9y agoI was re-structuring the routing in an Angular 2 app yesterday and I came to the same conclusion as the author. I think the documentation in the routing section doesn't go into enough detail about how to configure the modules for the desired encapsulation. The documentation you've posted is what is required - but it's in module not routing. It's hard to find.
- robwormald 9y agoAngular core team here, we're restructuring some of our docs at the moment and this is super useful feedback. Thanks!