Tuesday, April 26, 2016

ANGULAR 2 - first look by John Papa

Property Binding



HTTP Services: Observable and Subscribe


Async Pipe: How Components code is simplified by it


Async Pipe can return Promise (so you can use ".then(f())") instead of Observable if you want

Routes: Defining route in decorator @RouteConfig

Routes: Declaring Routing Directives in @Component

Routes: Use Routing in HTML

The main A2 imports
import { Component } from 'angular2/core';
import { HTTP_PROVIDERS } from 'angular2/http';
import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from 'angular2/router';
import 'rxjs/Rx'; // load the full rxjs

Use Routing for Menu with its Content



No comments: