Skip to main content
Events · Revision #1

How do I run a custom event?

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);
});