Injectable
EventBus
@ng-forge/dynamic-forms
Signature
class EventBusProperties
| Name | Type | Description |
|---|---|---|
events$ | Observable<FormEvent> | - |
Methods
| Name | Return Type | Description |
|---|---|---|
dispatch() | void | - |
emitInstance() | void | Dispatches a pre-created event instance directly. Used internally by EventDispatcher to forward events into the bus. |
on() | Observable<T> | Subscribes to form events with type-safe filtering. Provides a reactive stream of events filtered by type. Supports both single event type subscriptions and multi-type subscriptions for flexible event handling. |
packages/dynamic-forms/src/lib/events/event.bus.ts:75