Search code examples
angularangular2-aotangular-rc5

angular 2 compiler/cli AoT in Rc5


currently i am using tsc compilet(JIT) to compile my angular 2 application. for performance improvisation i am trying to switch to Aot Compilation using compiler/Cli.

I am referring this blog for AoT in my Rc5 Application. but stuck due to error while installing

npm install @angular/compiler-cli @angular/platform-server --save

error

I am confused between versions to use and proper direction.

Please suggest me blog or post for Aot in Angular 2 RC5 ? or tell me what is version of angular/compiler-cli to use for rc5 Help is really appreciated


Solution

  • Even though this question is off-topic and will result in mostly opinion based answers, I would suggest upgrading so that your application to the latest version of Angular. There is no reason to stay on a Release Candidate version.

    After that install the angular-cli and transfer your project.

    You can then use ng build --aot to compile your project using Ahead of Time.