Created
June 28, 2015 22:19
-
-
Save russweas/4dd1e3847c6fb1aecc0c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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