Wednesday, November 12, 2014

TypeScript-How does it work?

Now we will see how to work with TypeScript in Visual Studio 2012.
TypeScript is a language for application-scale JavaScript development. This power tool adds TypeScript support to Visual Studio 2012.We can download TypeScript for Visual Studio from the below link http://www.microsoft.com/en-in/download/details.aspx?id=34790

After downloading, run the install Typescript exe (TypeScriptSetup.1.0.rtm.VS2012.exe).Double click on exe file and we will get TypeScript window.
Click on install button and then TypeScript will be installed in our system for Visual Studio 2012.
Now open Visual Studio 2012 and go to File->New->Projects.Under Templates, click on TypeScript.
Click on button Ok in New project window and then will launch TypeScript window with TypeScript syntax.
Now press F5 and then will populate first TypeScript output.
Now we can see the differences and compare the syntax between TypeScript file and JavaScript file.








No comments:

Copyright © Codingnodes,2014.All Rights Reserved.