Created
June 28, 2015 23:01
-
-
Save russweas/bbd6d428ff2c7db959a9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() { | |
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