Visual Studio Code: Can't find the name angular?

I have an Angular application and it works fine, but my debugger shows me "Can't find the name angular."

var table = angular.module('myTable', ['angularUtils.directives.dirPagination']); 

I have included the link for Angular in my html file:

 <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> 

I also tried including the link for bower_components:

 <script src="bower_components/angular/angular.min.js"></script> 

The answer to this problem can be found in Receiving an error - cannot find the name angular but I can not use it.

+3
javascript angularjs visual-studio-code
source share
2 answers

I had the same problem until I came across this article:

http://blogs.msdn.com/b/vscode/archive/2015/05/22/getting-started-with-angular-and-visual-studio-code.aspx

Basically, here is what you do with npm:

 cd (app path) npm install -g tsd tsd init tsd query angular --action install --save 

What is it. When you restart VS Code, your problem should go away.

Please note that I did not use links to /// links suggested by the author in the article, but after the steps described above I stopped receiving an angular message that was not found, and I already noticed more ng - * options passing through Intellisense.

+1
source share

Click on the light next to "angular" and then select "boot vice".

+7
source share

All Articles