src/lib/extensions/mediator.service.ts
Methods |
Accessors |
| Public dispose | ||||||
dispose(event: string)
|
||||||
|
Disposes a certain event subject
Parameters :
Returns :
void
|
| Public emit | |||||||||
emit(event: string, data?: T)
|
|||||||||
Type parameters :
|
|||||||||
|
Emits an event name with the specified data
Parameters :
Returns :
void
|
| Public on |
on(event: string, next?: (value?: T) => void)
|
Type parameters :
|
|
Adds a subscription for a given event name
Returns :
Subscription
|
| Public once |
once(event: string, next?: (value?: T) => void)
|
Type parameters :
|
|
Adds a one time subscription for a given event
Returns :
Subscription
|
| NAMESPACE_DELIMITER |
getNAMESPACE_DELIMITER()
|
|
Gets the mediator namespace delimiter.
Returns :
string
|