mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-17 05:28:06 +01:00
refactor(app): refactor forRoot & menu import
This commit is contained in:
parent
d6cef06dcd
commit
be69ccc058
6 changed files with 170 additions and 111 deletions
|
|
@ -1,15 +1,18 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
import 'style-loader!../@theme/styles/styles.scss';
|
||||
import { MENU_ITEMS } from './pages-menu';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-pages',
|
||||
template: `
|
||||
<ngx-one-column-layout>
|
||||
<nga-menu></nga-menu>
|
||||
<nga-menu [items]="menu"></nga-menu>
|
||||
<router-outlet></router-outlet>
|
||||
</ngx-one-column-layout>
|
||||
`,
|
||||
})
|
||||
export class PagesComponent {
|
||||
|
||||
menu = MENU_ITEMS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue