$eventBusProvider
Configuration provider for
$eventBus service.Description
Instance of PubSubProvider for
configuring the $eventBus service. The default implementation returns the
global angular.EventBus instance, which is an async instance of
PubSub class.
Properties
$eventBusProvider.eventBus
Customize event bus instance.
Type: PubSub
Default:
angular.EventBusExample:
angular.module('demo', []).config(($eventBusProvider) => { eventBusProvider.eventBus = new MyCustomPubsub(); });
For service description, 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.