Last active
January 11, 2017 16:10
-
-
Save danielhusar/d36ff5164a18e7185eaab681816f0aa0 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
var ChangeController = Em.Controller.extend({ | |
changesController: Em.inject.controller('changes'), | |
admin: Em.computed.reads('changesController.model'), | |
change: Em.computed.reads('model'), | |
recordPageLoad: function() { | |
this.trackEvent('marketing-event', { | |
owner: 'marketing', | |
action: 'visited', | |
place: 'change-page', | |
changeId: this.get('change').id // this.get('change') is null | |
}); | |
}.on('init') | |
}); | |
export default ChangeController; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment