mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
eventtrigger created for notifications
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user