mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-15 04:38:05 +01:00
empty child component
This commit is contained in:
parent
32f4967d37
commit
0a4cc28447
5 changed files with 76 additions and 7 deletions
|
|
@ -2,12 +2,9 @@ import {Component, ViewEncapsulation} from 'angular2/core';
|
|||
import {RouteConfig, Router} from 'angular2/router';
|
||||
|
||||
import {Dashboard} from './dashboard';
|
||||
import {Ui} from './ui';
|
||||
import {PageTop, Sidebar} from '../theme';
|
||||
|
||||
/*
|
||||
* App Component
|
||||
* Top Level Component
|
||||
*/
|
||||
@Component({
|
||||
selector: 'pages',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
|
|
@ -17,20 +14,34 @@ import {PageTop, Sidebar} from '../theme';
|
|||
})
|
||||
@RouteConfig([
|
||||
{
|
||||
path: '/dashboard',
|
||||
name: 'Dashboard',
|
||||
component: Dashboard,
|
||||
path: '/dashboard',
|
||||
useAsDefault: true,
|
||||
data: {
|
||||
title: 'Dashboard',
|
||||
selected: true,
|
||||
expanded: true,
|
||||
selected: false,
|
||||
expanded: false,
|
||||
sidebarMeta: {
|
||||
icon: 'ion-android-home',
|
||||
order: 0,
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'Ui',
|
||||
component: Ui,
|
||||
path: '/ui/...',
|
||||
data: {
|
||||
title: 'UI Features',
|
||||
selected: false,
|
||||
expanded: false,
|
||||
sidebarMeta: {
|
||||
icon: 'ion-android-laptop',
|
||||
order: 200,
|
||||
}
|
||||
}
|
||||
},
|
||||
])
|
||||
export class Pages {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue