Skip to content

Instantly share code, notes, and snippets.

@Kerrick
Created March 21, 2014 14:58
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 Kerrick/9688089 to your computer and use it in GitHub Desktop.
Save Kerrick/9688089 to your computer and use it in GitHub Desktop.
Ember.js CoffeeScript Computed Properties
fullName: Ember.computed 'firstName', 'lastName', ->
"#{@get('firstName')} #{@get('lastName')}"
###
Tends to be less awkward than:
fullName: (->
"#{@get('firstName')} #{@get('lastName')}"
).property('firstName', 'lastName')
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment