Reputation: 63
Is the AOT Compilation the default on [email protected] and angular/[email protected] ? We are migrating our apps today, and I don't know whether its docs are still valid: https://angular.io/docs/ts/latest/cookbook/aot-compiler.html
I'm having some issues that appears with AoT Compilations errors like that:
Property 'myModel' is private and only accessible within class 'MyComponent'.
p.s.: It's error only appears with ng build -target=production
I think this kind of error should not occur on JIT Compilation.
Upvotes: 6
Views: 1709
Reputation: 71891
Since @angular/[email protected]
they've made the AOT
compilation the default for production builds. If you do not want that (even though I strongly advice you for performance reasons to make your app AOT compatible), you can use the --aot=false
argument for your build command
Upvotes: 6