Typescript was introduced on 2012 and I was working on it from 2013 since then I was been a biggest admirer of it and have developed numerous HTML applications with TypeScript. In this blog I am not going to touch on fundamentals but a little more advanced topic. One an find the Type Script fundamentals here.
In the coming blogs, I am going to explain how we can create MVC using TypeScript and how we can able to use it in out HTML pages along with AngularJS. Most of plumbing I have done using AngularJS services
I am going to split up the blog in to sub sections as follows
- Developing Model using Typescript
- Developing Services using TypeScript
- Repository pattern for getting data from service or static repository
- Boiler plate code for handling Asynchronous calls with AngularJS $q service
- Developing Controllers
- Using the TypeScript generated Javascript in HTML and populating data
- Bonus: Generating class diagram for TypeScript using tsviz
I have used Visual Studio Code for development but you can also use TypeScript playground for generating JavaScript as well with the sample code attached with the blog. Developing applications with TypeScript using VSCode can be found @TypeScript Programming with Visual Studio Code.
So let’s start ……..