$eventBusProvider
Configure the application-wide $eventBus service.
$eventBusProvider creates the injectable $eventBus singleton and exposes the
same instance through the global Angular service for integrations outside
dependency injection.
Exact signatures live in TypeDoc:
Replace The Bus
angular.module("demo", []).config(($eventBusProvider) => {
$eventBusProvider.eventBus = new MyCustomPubSub();
});
Most applications should use the default PubSub instance. Replace it only when
you need custom dispatch, instrumentation, or compatibility with another event
system.
For service usage, see $eventBus.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.