Created
April 3, 2018 06:29
-
-
Save goofmint/84ae761c75905c7ed772766a1b58e6be 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
const helloWorldController = { | |
__name: 'HelloWorldController', | |
'#btn click': function() { | |
} | |
}; | |
document.addEventListener('init', (event) => { | |
const page = event.target; | |
switch (page.id) { | |
case 'app': | |
h5.core.controller('body', helloWorldController); | |
break; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment