import {Component, ViewEncapsulation} from 'angular2/core'; import {RouteConfig} from 'angular2/router'; import {PageTop, ContentTop, Sidebar} from '../theme/components'; import {Dashboard} from './dashboard'; import {Ui} from './ui'; import {Maps} from './maps'; import {Charts} from './charts'; @Component({ selector: 'pages', encapsulation: ViewEncapsulation.None, styles: [], directives: [PageTop, Sidebar, ContentTop], template: `
` }) @RouteConfig([ { name: 'Dashboard', component: Dashboard, path: '/dashboard', useAsDefault: true, }, { name: 'Ui', component: Ui, path: '/ui/...', }, { name: 'Maps', component: Maps, path: '/maps/...', }, { name: 'Charts', component: Charts, path: '/charts/...', }, ]) export class Pages { constructor() { } ngOnInit() { } }