16 lines
366 B
TypeScript
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);
|
|
}
|
|
}
|