Angular 1.x with TypeScript 2.x, @types, and SystemJS - Using global typings

后端 未结 3 1914
野性不改
野性不改 2020-12-15 05:52

I am trying to use Angular 1.x with the new TS2 and @types registry but running into problems. It looks like @types does not use what the typings registry refered to as \"gl

3条回答
  •  情深已故
    2020-12-15 06:34

    Add this import to your code

    import * as angular from "angularjs";
    

    See Typescript Angular Import for more information

提交回复
热议问题