Sunday, 9 September 2018

Ng5-Lazy-loading-bug-cli-1.7.1 bug:

Ng5-Lazy-loading-bug-cli-1.7.1 bug:
-----------------------------------
angular-cli1.7.1 have issue to laod lazy laoding in string



{ path: 'user-panel', loadChildren: './user-panel/user-panel.module#UserPanelModule', },  -> will give error some time.


to
{ path: 'user-panel', loadChildren: () => UserPanelModule, },

import {UserPanelModule} from '/path-of-module'   in routing.ts
make the lazy loading into preloader module-> load the module as component level - module as component.

No comments:

Post a Comment

Data scientist in 2025 - guide YT

  Reference from YouTube Channel:  Sahil & Sarra ► Everything in one place: Datacamp Associate Data Scientist with Python Career Track: ...