How to check Angular2 version with typescript

后端 未结 4 1747
礼貌的吻别
礼貌的吻别 2020-12-15 04:33

I have written a simple app with angular2@2.0.0-alpha.11, and it works great. Now that I am testing it with the latest version of the alpha and beta avaible on npm, and I ke

4条回答
  •  温柔的废话
    2020-12-15 04:59

    The fact that current angular 2 is beta 13 combined with a simple search : https://github.com/angular/angular/search?l=typescript&p=1&q=13&type=Code&utf8=%E2%9C%93 and a look through docs https://angular.io/docs/ts/latest/api/ means that its not exposed at runtime as a simple version number

    Feel free to request it as a feature here : https://github.com/angular/angular/issues

提交回复
热议问题