2017-04-14 18:28:27 +03:00
|
|
|
/*
|
|
|
|
|
* 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',
|
2017-04-14 18:28:27 +03:00
|
|
|
styleUrls: ['./one-coll.layout.scss'],
|
2017-04-13 14:24:23 +03:00
|
|
|
template: `
|
|
|
|
|
<nga-layout>
|
|
|
|
|
<nga-layout-header fixed></nga-layout-header>
|
2017-04-14 18:28:27 +03:00
|
|
|
<nga-sidebar fixed>
|
|
|
|
|
<ng-content select="nga-menu"></ng-content>
|
|
|
|
|
</nga-sidebar>
|
2017-04-13 14:24:23 +03:00
|
|
|
<nga-layout-column>
|
2017-04-14 18:28:27 +03:00
|
|
|
<ng-content select="router-outlet"></ng-content>
|
2017-04-13 14:24:23 +03:00
|
|
|
</nga-layout-column>
|
2017-04-14 18:28:27 +03:00
|
|
|
<nga-layout-footer></nga-layout-footer>
|
2017-04-13 14:24:23 +03:00
|
|
|
</nga-layout>
|
|
|
|
|
`,
|
|
|
|
|
})
|
|
|
|
|
export class RootLayoutComponent {
|
|
|
|
|
constructor() { }
|
|
|
|
|
}
|