Constructor
new EventBroadCasters()
- Source:
Examples
Publish using Navigation Channel
//create Navigation Event
let helloNavEvent = new NavigationEvent(EventUtils.NAV_CHANGE_EVENT, "Hello_NavEvent", "Message :: Hello World !!!", "/hello");
// Dispatch Navigation Event on Navigation Event Channel
EventBroadCaster.navEventChannel.dispatchEvent(navEvent);
Subscribe using Navigation Channel to Receive Navigation Event
EventBroadCaster.navEventChannel.addEventListener(EventUtils.NAV_CHANGE_EVENT, event => { this.handleNavChangeEvent(event); });