Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created May 16, 2017 03:35
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/5f9cc03cd4879b483afeb9903bea57d1 to your computer and use it in GitHub Desktop.
Save goofmint/5f9cc03cd4879b483afeb9903bea57d1 to your computer and use it in GitHub Desktop.
$(function() {
var controller = {
__name: 'aController',
'#text keyup': function(cotnext, $el) {
let text = this.$find("#text").val();
this.trigger('sendMessage', {
text: text
})
}
}
h5.core.expose(controller);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment