Get all things ready on go with angular 2 and typescript..
Download or clone it....route to project path
and hit..
npm install
npm start
wow...here you go with everything setup on basic level..
Few things to notice -
1. Component :- this directory contains all the component of projects, so add it here or as you wish..we do have one already you can remove it.
2. Model :- It contains all the model class that contains Classes that is mapped from json/response.
3. Service :- This directory contains all the service part..all api request and here we are also converting/mapping the json/response to model/class and returning the result already mapped.
So, all mapping and conversions here..feel free to use your model everywhere else.
We already have a sevice in this directory, you can remove it but can use architeture and make sure to pass out your hostapi url.:)
4. Routing :- We already have routing setup so define all your routes in "app.routing.ts" file.