Skip to content

Instantly share code, notes, and snippets.

@chris001177
Last active July 6, 2019 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris001177/2059533c3c2e76950044f89b6aecd19d to your computer and use it in GitHub Desktop.
Save chris001177/2059533c3c2e76950044f89b6aecd19d to your computer and use it in GitHub Desktop.
// Import the EventBus.
import { EventBus } from './event-bus.js';
// Listen for the i-got-clicked event and its payload.
EventBus.$on('i-got-clicked', clickCount => {
console.log(`Oh, that's nice. It's gotten ${clickCount} clicks! :)`)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment