Skip to content

Instantly share code, notes, and snippets.

@russweas
Created June 28, 2015 23:01
Show Gist options
  • Save russweas/bbd6d428ff2c7db959a9 to your computer and use it in GitHub Desktop.
Save russweas/bbd6d428ff2c7db959a9 to your computer and use it in GitHub Desktop.
module.exports = {
data: function() {
return {
external: {}
};
},
props: [
'app'
],
template: require('./analytics.template.html'),
ready: function() {
var view = 'analytics-view';
this.app.viewData[view].ready = true;
this.app.viewData[view].model = this;
var methods = this.app.viewData[view].funcs_to_call;
for(var i in methods)
{
this[methods[i]]();
}
},
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