Using Angular 2 without TypeScript Transpiler

后端 未结 2 587
醉酒成梦
醉酒成梦 2020-12-29 08:37

I want to learn Angular 2 and switch my app to using it, however, I\'m having a problem with using TypeScript.

In my current environment I can\'t use a use the tran

2条回答
  •  感动是毒
    2020-12-29 09:31

    Angular2 is available in TypeScript, JavaScript and Dart. No need to use TypeScript.

    See
    - https://angular.io/docs/js/latest/index.html
    - http://blog.thoughtram.io/angular/2015/05/09/writing-angular-2-code-in-es5.html
    - http://blog.thoughtram.io/angular/2015/07/06/even-better-es5-code-for-angular-2.html

    See also Is it possible to use ES5 JavaScript with Angular 2 instead of TypeScript?

    
    
    
    

提交回复
热议问题