Injectable

EventBus

@ng-forge/dynamic-forms

Signature

class EventBus

Properties

NameTypeDescription
events$ Observable<FormEvent>-

Methods

NameReturn TypeDescription
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.