Last active
July 6, 2019 12:38
-
-
Save chris001177/2059533c3c2e76950044f89b6aecd19d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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