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

39 lines
888 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';
2017-04-13 14:24:23 +03:00
@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>
2017-04-17 19:01:47 +03:00
<a href="/#/pages/dashboard" class="logo">NgX <span>Admin</span></a>
</nga-layout-header>
2017-04-17 19:01:47 +03:00
<nga-sidebar left>
<nga-sidebar-content>
<ng-content select="nga-menu"></ng-content>
</nga-sidebar-content>
</nga-sidebar>
2017-04-17 19:01:47 +03:00
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>
2017-04-17 19:01:47 +03:00
<nga-layout-footer>
</nga-layout-footer>
2017-04-13 14:24:23 +03:00
</nga-layout>
`,
})
export class OneCollLayoutComponent {
2017-04-13 14:24:23 +03:00
}