How to deploy Angular 2 application developed in Typescript to production?

前端 未结 6 723
情深已故
情深已故 2020-12-05 01:47

I am new to Angular 2. I am confused with how Angular 2 works in production environment.

  1. What are the prerequisites for running Angular 2 application in pr

6条回答
  •  星月不相逢
    2020-12-05 02:50

    Angular 2 applications are written in TS but the browser only understands JavaScript at the end. So any TS project is transpiled to JavaScript first event while development.

    You can run angular 2 application on any server.

    You only have to deploy .js files, since a browser won't parse .ts files.

提交回复
热议问题