Does anyone know why when I ngc
my project, the lazy loaded modules used in the project are not being compiled/generated?
This is the lazy loaded route:
children: [
…
{
path: "my-apps",
loadChildren: "carbonldp-panel/my-apps/my-apps.module#MyAppsModule",
},
]
This is the output, no my-apps.module.ngfactory.ts
file is being generated:
The ONLY way to generate it, is by imporing it in the routing file, but that’s not lazy loading:
import { MyAppsModule } from "carbonldp-panel/my-apps/my-apps.module”;