mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
24 lines
440 B
TypeScript
24 lines
440 B
TypeScript
|
|
import { Injectable } from '@angular/core';
|
||
|
|
import { of as observableOf, Observable } from 'rxjs';
|
||
|
|
|
||
|
|
import { NbMenuItem } from '@nebular/theme';
|
||
|
|
|
||
|
|
@Injectable()
|
||
|
|
export class HeaderMenuService {
|
||
|
|
|
||
|
|
private headerMenu: NbMenuItem[] = [
|
||
|
|
{
|
||
|
|
title: 'Home',
|
||
|
|
link: '/',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
title: 'Docs',
|
||
|
|
link: '/docs',
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
getHeaderMenu(): Observable<NbMenuItem[]> {
|
||
|
|
return observableOf(this.headerMenu);
|
||
|
|
}
|
||
|
|
}
|