mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
28 lines
No EOL
635 B
TypeScript
28 lines
No EOL
635 B
TypeScript
import {Component, ViewEncapsulation} from 'angular2/core';
|
|
import {RouteConfig, Router} from 'angular2/router';
|
|
|
|
import {Dashboard} from './dashboard';
|
|
import {PageTop} from '../theme';
|
|
|
|
/*
|
|
* App Component
|
|
* Top Level Component
|
|
*/
|
|
@Component({
|
|
selector: 'pages',
|
|
encapsulation: ViewEncapsulation.None,
|
|
styles: [],
|
|
directives: [PageTop],
|
|
template: `<page-top></page-top><router-outlet></router-outlet>`
|
|
})
|
|
@RouteConfig([
|
|
{ path: '/dashboard', name: 'Dashboard', component: Dashboard, useAsDefault: true },
|
|
])
|
|
export class Pages {
|
|
constructor() {}
|
|
|
|
ngOnInit() {
|
|
console.log('Pages');
|
|
}
|
|
|
|
} |