Angular 2 AOT doesn't like moduleId in my components
How do I get around this?
As far as I know, the JIT needs a moduleId for the components to find the template and styles if the component has one.
However, the AOT does not use the module, and you get the "Cannot find the name" error of the module when compiling for the AOT.
I don't want to go through all my modules and remove the ID for the AOT as I am using JIt for DEV and AOT for production only to get performance benefits.
I used new angular 4 app for this: https://angular.io/docs/ts/latest/guide/setup.html
+1
source to share
No one has answered this question yet
See similar questions:
or similar: