// #docplaster // #docregion import {Component} from 'angular2/core'; import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router'; import {CrisisCenterComponent} from './crisis-center/crisis-center.component'; import {HeroListComponent} from './heroes/hero-list.component'; import {HeroDetailComponent} from './heroes/hero-detail.component'; @Component({ selector: 'my-app', // #enddocregion /* Typical link // #docregion h-anchor Heroes // #enddocregion h-anchor */ /* Incomplete Crisis Center link when CC lacks a default // #docregion cc-anchor-fail // The link now fails with a "non-terminal link" error // #docregion cc-anchor-w-default Crisis Center // #enddocregion cc-anchor-w-default // #enddocregion cc-anchor-fail */ /* Crisis Center link when CC lacks a default // #docregion cc-anchor-no-default Crisis Center // #enddocregion cc-anchor-no-default */ /* Crisis Center Detail link // #docregion princess-anchor Princess Crisis // #enddocregion princess-anchor */ // #docregion // #docregion template template: `

Component Router

Crisis Center Princess Crisis Dragon Crisis `, // #enddocregion template directives: [ROUTER_DIRECTIVES] }) @RouteConfig([ {path: '/crisis-center/...', name: 'CrisisCenter', component: CrisisCenterComponent}, ]) export class AppComponent { }