ngx-admin/src/app/@theme/layouts/one-coll-layout/one-coll.layout.ts

31 lines
736 B
TypeScript
Raw Normal View History

/*
* TODO
* I think we need to store our header, footer,
* sedibars and etc. separetly, each in it's own
* component.
*
* And of course we need to make this layout part
* reusable.
* */
2017-04-13 14:24:23 +03:00
import { Component } from '@angular/core';
@Component({
selector: 'one-coll-layout',
styleUrls: ['./one-coll.layout.scss'],
2017-04-13 14:24:23 +03:00
template: `
<nga-layout>
<nga-layout-header fixed></nga-layout-header>
<nga-sidebar fixed>
<ng-content select="nga-menu"></ng-content>
</nga-sidebar>
2017-04-13 14:24:23 +03:00
<nga-layout-column>
<ng-content select="router-outlet"></ng-content>
2017-04-13 14:24:23 +03:00
</nga-layout-column>
<nga-layout-footer></nga-layout-footer>
2017-04-13 14:24:23 +03:00
</nga-layout>
`,
})
export class RootLayoutComponent {
constructor() { }
}