Skip to content

Instantly share code, notes, and snippets.

@mupkoo mupkoo/comment.js
Created Nov 5, 2014

Embed
What would you like to do?
Comment decorate User
import Ember from 'ember';
import UserController from 'app/controllers/user';
export default Ember.ObjectController.extend({
decorateUser: function () {
var self = this;
this.get('user').then(function (user) {
var controller = UserController.create({ model: user });
self.set('decoratedUser', controller);
});
}.observes('user').on('init')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.