How do I run a custom event?
You can run your own custom event using the runEvent() method:
window.Aero.runEvent('acme', { foo: 'bar' });
And listen for it wherever needed:
window.AeroEvents.on('acme', (data) => {
console.log(data);
});
You can run your own custom event using the runEvent() method:
window.Aero.runEvent('acme', { foo: 'bar' });
And listen for it wherever needed:
window.AeroEvents.on('acme', (data) => {
console.log(data);
});