
Angular 2 Cookbook
By :

When approaching Angular 2 initially, it is useful to have an understanding of an application structure that is torn down to the bare metal. In the case of a minimum viable application, it will consist of a single component. Since this is a chapter on application organization, it isn't so much about what that component will look like, but rather how to take the TypeScript component definition and actually get it to render in a web page.
The code, links, and a live example of this are available at http://ngcookbook.herokuapp.com/6323/.
This recipe assumes you have completed all the steps given in the Composing configuration files for a minimum viable Angular 2 application recipe. The npm
module installation should succeed with no errors:
npm install
The simplest place to start is the core application component.
Implement a component inside a new app/
directory as follows; there...