brandonroberts / angular-router-loader

A Webpack loader that enables string-based module loading with the Angular Router

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can I lazyload modules with two Components?

Reboca opened this issue · comments

because of need seting default path:'', lazyload modules always go default component.
image
image

how can I don't need to set default path?

Order matters in the routing configuration, so you need to place map above your empty path route to load its module. Then your map routes is just an array of child routes.