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
filteredOwners: Ember.computed('petName', '[email protected].[]', function() { | |
let petName = this.get('petName'); | |
let ownersArray = this.get('model').toArray(); | |
let filterPromise = Ember.RSVP.filter(ownersArray, owner => { | |
return owner.get('pets').then( pets => { | |
return pets.isAny('name', petName); | |
}); | |
}); |
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
filteredOwners: Ember.computed('petName', '[email protected].[]', function() { | |
let petName = this.get('petName'); | |
return DS.PromiseArray.create({ | |
promise: Ember.RSVP.filter(this.get('model').toArray(), owner => { | |
return owner.get('pets').then( pets => { | |
return pets.isAny('name', petName); | |
}); | |
}) | |
}); |
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.Controller.extend({ | |
appName:'Ember Twiddle', | |
showComponent: true, | |
actions: { | |
toggleShow() { | |
this.toggleProperty('showComponent'); |
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.Controller.extend({ | |
appName: 'Ember Twiddle', | |
actionState: 'not selected', | |
actions: { | |
testAction: function(file) { | |
this.set('actionState', file.name); | |
} |
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.Controller.extend({ | |
appName: 'Ember Twiddle', | |
actionState: 'not selected', | |
actions: { | |
testAction: function(file) { | |
this.set('actionState', file.name); | |
} |
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.Controller.extend({ | |
appName: 'Ember Twiddle', | |
actionState: 'not selected', | |
actions: { | |
testAction: function(file) { | |
this.set('actionState', file.name); | |
} |
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.Controller.extend({ | |
appName: 'Query Params Test', | |
queryParams: ['test'] | |
}); |
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
{ | |
"external_update_url": "https://clients2.google.com/service/update2/crx" | |
} |
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
[ | |
{ "keys": ["ctrl+shift+<"], "command": "erb" }, | |
{ "keys": ["ctrl+shift+u"], "command": "upper_case" }, | |
{ "keys": ["ctrl+shift+l"], "command": "lower_case" }, | |
{ "keys": ["ctrl+shift+t"], "command": "title_case" }, | |
{ "keys": ["ctrl+shift+i"], "command": "insert_snippet", "args": {"contents": "<em>${0:$SELECTION}</em>" } }, | |
{ "keys": ["ctrl+shift+b"], "command": "insert_snippet", "args": {"contents": "<strong>${0:$SELECTION}</strong>" } }, | |
{ "keys": ["ctrl+shift+enter"], "command": "insert_snippet", "args": {"contents": "<br />" } }, | |
{ | |
"keys": ["super+alt+6"], |
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.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |