Created
April 3, 2018 06:31
-
-
Save goofmint/2b6cfbe626b892b8b578e665c1cbb865 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 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