Skip to content

Instantly share code, notes, and snippets.

@hpstuff
Last active December 3, 2015 14:38
Show Gist options
  • Select an option

  • Save hpstuff/20567e6cab1536076e40 to your computer and use it in GitHub Desktop.

Select an option

Save hpstuff/20567e6cab1536076e40 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Route.extend({
model: function () {
return {};
}
firstName: null,
lastName: null,
fullName: Ember.computed('firstName', 'lastName', function() {
return this.get('firstName') + ' ' + this.get('lastName');
})
});
import Ember from 'ember';
export class FullEs6 extends Ember.Route {
model () {
return {};
}
firstName = null
lastName = null
@computed('firstName', 'lastName')
fullName(firstName, lastName) {
return `#{firstName} #{lastName}`;
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment