Skip to content

Instantly share code, notes, and snippets.

@KasperTidemann
Created January 8, 2013 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KasperTidemann/4487641 to your computer and use it in GitHub Desktop.
Save KasperTidemann/4487641 to your computer and use it in GitHub Desktop.
Property example
App.ExampleController = Em.Controller.extend({
needs: ['user'],
userController: (function() {
return this.controllerFor('user');
}).property(),
username: (function() {
return this.get('userController.username') + ' Funkypants!';
}).property('userController.username')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment