eventtrigger created for notifications

This commit is contained in:
Eudes Inácio
2021-09-21 06:08:01 +01:00
parent 3c78c5ddc4
commit 7fdb16c272
4 changed files with 56 additions and 3 deletions
+21
View File
@@ -0,0 +1,21 @@
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class EventTrigger {
private eventSubject = new Subject<any>()
publishSomeData(data: any){
this.eventSubject.next(data)
}
getObservable(): Subject<any>{
return this.eventSubject
}
}