Affichage du titre des pages dans la navigation
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
|
||||
|
||||
@Injectable()
|
||||
export class ServiceComm {
|
||||
private componentTitleSource = new BehaviorSubject<string>("");
|
||||
componentTitle = this.componentTitleSource.asObservable();
|
||||
|
||||
constructor() { }
|
||||
|
||||
updatedComponentTitle(title: string) {
|
||||
this.componentTitleSource.next(title);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user