// #docregion
import {Component} from '@angular/core';
import {RouteConfig, ROUTER_DIRECTIVES} from '@angular/router';
import PhoneList from './phone_list/phone_list.component';
import PhoneDetail from './phone_detail/phone_detail.component';

@RouteConfig([
  {path:'/phones', name: 'Phones', component: PhoneList},
  {path:'/phones/:phoneId', name: 'Phone', component: PhoneDetail},
  {path:'/', redirectTo: ['Phones']}
])
@Component({
  selector: 'pc-app',
  template: '<router-outlet></router-outlet>',
  directives: [ROUTER_DIRECTIVES]
})
export default class AppComponent {
}
