Skip to content

Instantly share code, notes, and snippets.

@russweas
Created June 28, 2015 22:42
Show Gist options
  • Save russweas/82e9f955b12d6749b28f to your computer and use it in GitHub Desktop.
Save russweas/82e9f955b12d6749b28f to your computer and use it in GitHub Desktop.
module.exports = {
data: function() {
return {
external: {}
};
},
props: [
'app'
],
template: require('./analytics.template.html'),
ready: function() {
this.app.viewData['analytics-view'].ready = true;
this.app.viewData['analytics-view'].model = this;
this.app.call('analytics-view', 'al');
},
methods: {
al: function() {
alert('i got called!');
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment