mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02: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);
|
||
|
}
|
||
|
}
|