This file contains 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.Component.extend({ | |
audioPlayer: Ember.inject.service('audio-player'), | |
actions: { | |
start(){ | |
this.get('audioPlayer').start() | |
}, | |
stop(){ | |
this.get('audioPlayer').stop() |
This file contains 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.Component.extend({ | |
audioPlayer: Ember.inject.service('audio-player'), | |
actions: { | |
start(){ | |
this.get('audioPlayer').start() | |
}, | |
stop(){ | |
this.get('audioPlayer').stop() |
This file contains 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.Component.extend({ | |
}); |
This file contains 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.Component.extend({ | |
modalNavigation: Ember.inject.service(), | |
isOpen: Ember.computed.alias('modalNavigation.modalOpen'), | |
classNameBindings: ['isOpen:modalDialog:notOpen'], | |
This file contains 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({ | |
}); |
This file contains 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.Component.extend({ | |
}); |
This file contains 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.Component.extend({ | |
test: Ember.computed('checkboxes.[].state',function(){ | |
console.log('change') | |
return this.get('checkboxes').filterBy('state',false).get('length') | |
}), | |
observeCheckboxes: function() { | |
console.log(this.get('checkboxes').toArray()); |
This file contains 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.Component.extend({ | |
edit: true, | |
actions: { | |
toggleEdit(){ | |
this.toggleProperty('edit') | |
}, | |
itemSelected(item){ | |
const field = this.get('searchField') |
This file contains 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.Component.extend({ | |
didInsertElement(...args) { | |
this._super(args); | |
const pageIds = this.get('pages').map(x => x.id) | |
const pageIndex = pageIds.indexOf(this.get('active').id) | |
const pageSize = 500 | |
const pageLocation = pageIndex * pageSize | |
console.log(pageLocation) |
This file contains 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({ | |
}); |