Configuring AngularJS for TypeScript in Sublime Text 3

Good afternoon, I'm trying to use AngularJS in TypeScript, the problem is that I just switched to Sublime Text 3 from VS2013, for some reason the OS I dug up Google answers, but I did not find one. so I would like to know how I can configure AngularJS for TypeScript in Sublime (note: TypeScript is already configured in Sublime, I am looking specifically for how to configure AngularJS for TypeScript). Thank you

+7
angularjs sublimetext3 typescript
source share
1 answer

Not sure if I have any questions, but pretty much after installing the plugin you need to install AngularJs TypeScript definitions, reference them in your code.

I use tsd to control the definition. This is pretty much a conversation (oh my God ... another dependency manager ...). You can install it with npm install tsd -g , then in the project folder initialize tsd repo

 tsd init 

And install the definitions of AngularJs

 tsd query angular --action install --save 

And finally, reference them in the source code by adding a link directive (tsd will install each definition separately, and tsd.d.ts combines all installed dependencies, so you don’t need to inflate files with links):

 /// <reference path="typings/tsd.d.ts" /> 

What is it. Now you can get the code hint:

AngularJs TypeScript code hint

Now, have you done all this and still haven’t worked?

+8
source share

All Articles