mirror of
https://github.com/mempool/mempool.git
synced 2025-03-01 01:00:00 +01:00
24 lines
610 B
TypeScript
24 lines
610 B
TypeScript
|
import { Component, OnInit } from '@angular/core';
|
||
|
import { Observable } from 'rxjs';
|
||
|
import { ApiService } from '../../services/api.service';
|
||
|
import { MenuGroup } from '../../interfaces/services.interface';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-menu',
|
||
|
templateUrl: './menu.component.html',
|
||
|
styleUrls: ['./menu.component.scss']
|
||
|
})
|
||
|
|
||
|
export class MenuComponent implements OnInit {
|
||
|
navOpen: boolean = true;
|
||
|
userMenuGroups$: Observable<MenuGroup[]> | undefined;
|
||
|
|
||
|
constructor(
|
||
|
private apiService: ApiService
|
||
|
) {}
|
||
|
|
||
|
ngOnInit(): void {
|
||
|
this.userMenuGroups$ = this.apiService.getUserMenuGroups$();
|
||
|
}
|
||
|
}
|