See More

https://drive.google.com/folderview?id=0B7GYXx6a6d8QR3lTT1J3MEpRSlE&usp=drive_web

Naming

Var

private var : private _varName;

File / Module / Class

The act of exporting turns the file into a module. The name of the file (without extension) is usually the name of the module. hero-detail.component.ts

    class HeroDetailComponent {}
    // then it can be import by following syntax
    import {HeroDetailComponent} from './hero-detail.component';

Template Usage

<script>, <body> ... are no sense to use

@View

dont use only @Component if has Template

Project Structure

https://angular.io/docs/ts/latest/quickstart.html

Testability

It is difficult to unit test a component when there is a call to bootstrap in the same file.

Dont write complex template expressions

create root component first