Skip to content

Instantly share code, notes, and snippets.

@russweas
Created June 28, 2015 22:19
Show Gist options
  • Save russweas/4dd1e3847c6fb1aecc0c to your computer and use it in GitHub Desktop.
Save russweas/4dd1e3847c6fb1aecc0c 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.external = this.app.viewData['analytics-view'];
//Access variable "downloads" that has been set in about-view
alert(this.external.downloads);
//Access the user variable from the main app
alert(this.app.user.name);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment