Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created April 3, 2018 06:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save goofmint/cf5a615f025816b94a9d4745377971ba to your computer and use it in GitHub Desktop.
ons.ready(() => {
// ons.notification.alert({message: 'Hello'})
var helloWorldController = {
__name: 'HelloWorldController',
'#btn click'() {
ons.notification.alert('Hello World');
}
};
h5.core.controller('#app', helloWorldController );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment