I install this module for my Angular project by ng add
command. It imports the module in the app.module file. Also, I use lazy loading modules and routes in my project. I need this external module in one of my routes. I don't want to import it in app.module.
But when I remove the import in app.module, I get the following errors:
core.js:15714 ERROR Error: Uncaught (in promise): Error:
StaticInjectorError(AppBrowserModule)[InjectionToken nz-i18n]:
...
Am I wrong? Where should I import such modules? If it's lazy loading, it's not reasonable to import it in the app.module file.