Whenever I compile an Angular 2 application with ngc
, it creates the .ngfactory.ts
files for every component and then compiles all the typescript to javascript.
However, when I run ´ngc´ the first time, it creates the ngfactory
files, but compiles only other files to javascript. This means no compiled ngfactory
javascript files are produced.
On second run, it does compile the ngfactory
files too (probably because they were generated in the same folder as sources).
My question is: Are the ngfactories themselves supposed to be compiled or not? Does it affect the application in any way?