Getting Error - Cannot find name 'angular'

前端 未结 7 1567
野的像风
野的像风 2020-12-15 17:20

I\'m starting writing AngularJS app using TypeScript. I have this simple module command:

(() => {
    angular
        .module(\'app\', []);
})();
<         


        
7条回答
  •  佛祖请我去吃肉
    2020-12-15 17:52

    For me inside of VisualStudio I used part of Augusto's suggested answer and simply did:

    npm install --save @types/angular
    

    and it worked like a charm.

提交回复
热议问题