Angular2 Quick Notes

Overview

This is a list of userful notes about Angular2 development for my own need. A more completed list can be found at awesome-angular2.

Features

TypeScript

Change Detection

Dependency Injection

HTTP(RxJS)

Zone.js

1.x vs 2 Syntax Differences

AngularJS 1.x Angular2
angular.bootstrap bootstrap()1
restrict: 'A' selector: '[attribute]'
restrict: 'E' selector: 'app'
restrict: 'C' selector: '.class'
ng-repeat="name in names" *ng-for="#name of names"
ng-transclude <ng-content> or <content>2 3 4

1.x to 2 Migration

Footnotes