Dmitry Dmitry - 5 months ago 27
AngularJS Question

VS Code - Angular 1/TypeScript - "angular" is not recognized when removing /// reference

I decided to experiment a bit with a seed project for angular using TypeScript.
According to vs code docs (see second headline) I can drop /// references at the top of my .ts files, and Visual Studio Code should still give me proper intellicense if I have correct

tsconfig.json
file in place. Well, I do, and unless I place the
reference
thing my
angular
variable is not getting recognized.

Here is a link to the project that I'm testing with.
See
src/client/home/home.ts
file.

PS: running gulp won't be successful as this is still work in progress.

Answer

Well, I do, and unless I place the reference thing my angular variable is not getting recognized.

Had a quick look. This https://github.com/DmitryEfimenko/ng-boilerplate/pull/3 should fix it. Basically / instead of \\