Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created May 16, 2017 03:37
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/734db8b29c391272111ad929ef64adc7 to your computer and use it in GitHub Desktop.
Save goofmint/734db8b29c391272111ad929ef64adc7 to your computer and use it in GitHub Desktop.
$(function() {
var controller = {
__name: 'parrentController',
_sendController: aController,
_buttonController: bController,
__meta: {
_sendController: {
rootElement: '#container1'
},
_buttonController: {
rootElement: '#container2'
}
},
__ready: function() {
},
'{rootElement} sendMessage': function(context) {
let text = context.evArg.text;
this._buttonController.getMessage(text);
}
}
h5.core.controller('#container', controller);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment