The event payload type.
Fires the event, invoking all registered listeners synchronously.
Listener errors are caught individually so one failing handler
never prevents the remaining listeners from executing.
Caught errors are reported via console.error so they still
surface in logs without causing unhandled exceptions.
The payload to deliver to every listener.
Registers a listener that is invoked every time the event fires.
Callback receiving the event payload.
A teardown function that removes the listener when called.
Designed to be passed directly to DestroyRef.onDestroy().
Minimal typed event emitter — a lightweight alternative to RxJS
Subjectfor discrete notifications.