asotog asotog - 1 year ago 154
TypeScript Question

What's the main purpose of platform-server module in Angular 2?

When looking AOT (ahead of time compilation) docs!#compile , there is a dependency on platform-server , what is the purpose of it ? seems only compiler-cli required to run the compiler tool

Answer Source

The @angular/platform-server provides the server platform that supports the runtime compiler and it only as a dependency of compiler-cli. In the future, we will be installing compiler-cli that don't need it as here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download