EchoTex_Payroll/HRM.UI/ClientApp/src/app/app.breadcrumb.service.ts
2024-10-14 10:01:49 +06:00

16 lines
366 B
TypeScript

import { Injectable } from '@angular/core';
import { Subject , Observable } from 'rxjs';
import { MenuItem } from 'primeng/api';
@Injectable()
export class BreadcrumbService {
private itemsSource = new Subject<MenuItem[]>();
itemsHandler = this.itemsSource.asObservable();
setItems(items: MenuItem[]) {
this.itemsSource.next(items);
}
}