Skip to content

Instantly share code, notes, and snippets.

@danielhusar
Last active January 11, 2017 16:10
Show Gist options
  • Save danielhusar/d36ff5164a18e7185eaab681816f0aa0 to your computer and use it in GitHub Desktop.
Save danielhusar/d36ff5164a18e7185eaab681816f0aa0 to your computer and use it in GitHub Desktop.
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