Created
April 3, 2018 06:29
-
-
Save goofmint/acc9421490f255701ee02136fba24447 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
document.addEventListener('init', (event) => { | |
const page = event.target; | |
switch (page.id) { | |
case 'new': | |
h5.core.controller('#new', newController, page.data); | |
break; | |
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