re: How To implement Lazy Loading in Angular VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

We are referring to the posts.module.ts file just check out line 11 on posts.module.ts

 

A new addition in Angular6, we will be referring directly to the module like
loadChildren:() => PostsModule();

You won't getting lazy loading if you do it this way (as you will be adding the reference).

You can do this way. Just remove pair of braces.
loadChildren:() => PostsModule

code of conduct - report abuse