mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-18 07:25:28 +01:00
menu items
This commit is contained in:
parent
e452207030
commit
53aa869d22
3 changed files with 100 additions and 2 deletions
|
|
@ -1,10 +1,22 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
import {Component, ElementRef} from 'angular2/core';
|
||||
|
||||
import {SidebarService} from './sidebar.service';
|
||||
|
||||
@Component({
|
||||
selector: 'sidebar',
|
||||
styles: [ require('./sidebar.scss') ],
|
||||
template: require('./sidebar.html'),
|
||||
providers: [SidebarService],
|
||||
directives: [],
|
||||
pipes: []
|
||||
})
|
||||
export class Sidebar {}
|
||||
export class Sidebar {
|
||||
menuItems = [];
|
||||
menuHeight = 0;
|
||||
|
||||
constructor(el: ElementRef, private _sidebarService: SidebarService) {
|
||||
this.menuItems = this._sidebarService.getMenuItems();
|
||||
// this.menuHeight = el.nativeElement.childNodes[0].clientHeight - 84;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue