Last active
November 23, 2015 09:56
-
-
Save amk221/d550f6b8f1654faaaad3 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 computed from 'ember-computed'; | |
| export function birthDateStrFor(key) { | |
| return computed(key, function() { | |
| let user = this.get(key); | |
| let name = user.get('name'); | |
| let dob = user.get('dob').format('DD/MM/YYYY'); | |
| return `${name}'s birthday is on ${dob}`; | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment