Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created April 3, 2018 06:31
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 goofmint/4539c3169169286c2177a8ce3a24416c to your computer and use it in GitHub Desktop.
Save goofmint/4539c3169169286c2177a8ce3a24416c to your computer and use it in GitHub Desktop.
document.addEventListener('init', (event) => {
const page = event.target;
switch (page.id) {
case 'app':
h5.core.controller('body', helloController, {
data: {
options: {
time: new Date()
},
page: page
}
});
break;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment