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
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.