mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 09:20:12 +01:00
empty child component
This commit is contained in:
parent
32f4967d37
commit
0a4cc28447
5 changed files with 76 additions and 7 deletions
37
src/app/pages/ui/ui.component.ts
Normal file
37
src/app/pages/ui/ui.component.ts
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
import {RouteConfig} from 'angular2/router';
|
||||
|
||||
import {Typography} from './components/typography';
|
||||
|
||||
@Component({
|
||||
selector: 'ui',
|
||||
pipes: [],
|
||||
providers: [],
|
||||
styles: [],
|
||||
template: `<router-outlet></router-outlet>`
|
||||
})
|
||||
@RouteConfig([
|
||||
{
|
||||
name: 'Typography',
|
||||
component: Typography,
|
||||
path: '/typography',
|
||||
useAsDefault: true,
|
||||
data: {
|
||||
title: 'Typography',
|
||||
selected: false,
|
||||
expanded: false,
|
||||
sidebarMeta: {
|
||||
order: 0,
|
||||
}
|
||||
}
|
||||
},
|
||||
])
|
||||
export class Ui {
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue