Last active
December 3, 2015 14:38
-
-
Save hpstuff/20567e6cab1536076e40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'); | |
| }) | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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