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/2b6cfbe626b892b8b578e665c1cbb865 to your computer and use it in GitHub Desktop.
Save goofmint/2b6cfbe626b892b8b578e665c1cbb865 to your computer and use it in GitHub Desktop.
const helloController = {
__name: 'HelloController',
__ready(context) {
const page = context.args.data.page;
const options = context.args.data.options;
this.view.register(page.id, page.innerHTML);
this.view.update('#app', page.id, options);
},
'#btn click'() {
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment