mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-16 22:45:30 +01:00
feat(rc5): update to angular rc.5
- NgaModule - module wrapper for all ng2-admin custom features - Ng Module per page - async components load - menu moved (again) to a separate file (as now each module has its own route file) - no need to import Ba* directives into the pages which have NgaModule in the import statement
This commit is contained in:
parent
983f6f1675
commit
5b7c132eac
86 changed files with 854 additions and 384 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import {Component, ElementRef, HostListener, ViewEncapsulation} from '@angular/core';
|
||||
import {AppState} from '../../../app.state';
|
||||
import {GlobalState} from '../../../global.state';
|
||||
import {layoutSizes} from '../../../theme';
|
||||
import {BaMenu} from '../baMenu';
|
||||
import {routes} from '../../../../app/app.routes';
|
||||
import {MENU} from '../../../../app/app.menu';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
@Component({
|
||||
|
|
@ -16,14 +16,14 @@ import * as _ from 'lodash';
|
|||
export class BaSidebar {
|
||||
|
||||
// here we declare which routes we want to use as a menu in our sidebar
|
||||
public routes = _.cloneDeep(routes); // we're creating a deep copy since we are going to change that object
|
||||
public routes = _.cloneDeep(MENU); // we're creating a deep copy since we are going to change that object
|
||||
|
||||
public menuHeight:number;
|
||||
public isMenuCollapsed:boolean = false;
|
||||
public isMenuShouldCollapsed:boolean = false;
|
||||
|
||||
|
||||
constructor(private _elementRef:ElementRef, private _state:AppState) {
|
||||
constructor(private _elementRef:ElementRef, private _state:GlobalState) {
|
||||
|
||||
this._state.subscribe('menu.isCollapsed', (isCollapsed) => {
|
||||
this.isMenuCollapsed = isCollapsed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue