Events
Subscribe to events to trigger custom behavior when specific conditions are met.
Events are actions that occur when certain criteria are satisfied. Use event callbacks to respond to user interactions and experience progress. Event listeners and callbacks are asynchronous, allowing your experience to react in real time.
To subscribe to an event, use the following JavaScript:
$scope.$on(‘eventName’, callback(evt){
});
In the example above:
eventName is the ID of the event.
The callback function defines what happens when the event is triggered.
Most events are triggered by widgets. A full list of available events will be available soon.
Was this helpful?