Created
August 28, 2016 22:45
-
-
Save sts/a062bcbd0762f8980f880fcb2d011744 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'; | |
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
isEditing: true, | |
model(params) { | |
return this.get('store').findRecord('album', params.album_id); | |
}, | |
actions: { | |
toggleEdit() { | |
this.toggleProperty('isEditing'); | |
Ember.Logger.debug('toggle isEditing: ', this.getProperties('isEditing')['isEditing']); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment