shlomiassaf / ng-router-loader

Webpack loader for NgModule lazy loading using the angular router
MIT License
46 stars 8 forks source link

Is it possible to load route on first redirect to that route? #5

Closed alexeychikk closed 7 years ago

alexeychikk commented 7 years ago

Hi! I have a question. I have configured everything according to example in the test folder. And now one of my routes is loading async successfully BUT new chunk that contains this module is loaded along with other assets. Is it possible to load appropriate chunk after first redirect to async route?

shlomiassaf commented 7 years ago

Yes, but it's not related to the loader, this is an @angular/router configuration

See the docs

alexeychikk commented 7 years ago

Oh, sorry. Thank you very much :)