mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-22 18:30:14 +01:00
basic sidebar implementation
This commit is contained in:
parent
0b399a4a1b
commit
e452207030
6 changed files with 295 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ import {Component, ViewEncapsulation} from 'angular2/core';
|
|||
import {RouteConfig, Router} from 'angular2/router';
|
||||
|
||||
import {Dashboard} from './dashboard';
|
||||
import {PageTop} from '../theme';
|
||||
import {PageTop, Sidebar} from '../theme';
|
||||
|
||||
/*
|
||||
* App Component
|
||||
|
|
@ -12,8 +12,8 @@ import {PageTop} from '../theme';
|
|||
selector: 'pages',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
styles: [],
|
||||
directives: [PageTop],
|
||||
template: `<page-top></page-top><router-outlet></router-outlet>`
|
||||
directives: [PageTop, Sidebar],
|
||||
template: `<sidebar></sidebar><page-top></page-top><router-outlet></router-outlet>`
|
||||
})
|
||||
@RouteConfig([
|
||||
{ path: '/dashboard', name: 'Dashboard', component: Dashboard, useAsDefault: true },
|
||||
|
|
@ -25,4 +25,4 @@ export class Pages {
|
|||
console.log('Pages');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue