1@Injectable()
2export class CommunicationService {
3 constructor() { }
4
5 private emitChangeSource = new Subject<any>();
6
7 changeEmitted$ = this.emitChangeSource.asObservable();
8
9 emitChange() {
10 this.emitChangeSource.next();
11 }
12}
13