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 { | |
apiUrl: function(videoId) { | |
return '//gdata.youtube.com/feeds/api/videos/' + videoId; | |
}, | |
embedUrl: function(videoId) { | |
return '//www.youtube.com/embed/' + videoId; | |
}, | |
thumbnailUrl: function(videoId) { |
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 LazyVideoProviders from 'ember-lazy-video/services/lazy-video-providers'; | |
export default { | |
name: 'lazy-video', | |
initialize: function(container, application){ | |
application.register('service:lazy-video-providers', LazyVideoProviders, { singleton: true }); | |
application.inject('component:lazy-video', 'providers', 'service:lazy-video-providers'); | |
} | |
}; |
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'; | |
var computed = Ember.computed; | |
var get = Ember.get; | |
export default Ember.Object.extend({ | |
fullName: computed('firstName', 'lastName', function() { | |
return get(this, 'firstName') + ' ' + get(this, 'lastName'); | |
}) | |
}); |
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'; | |
var computed = Ember.computed; | |
var get = Ember.get; | |
export default Ember.Object.extend({ | |
fullName: computed('firstName', 'lastName', function() { | |
return get(this, 'firstName') + ' ' + get(this, 'lastName'); | |
}), | |
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'; | |
var computed = Ember.computed; | |
var get = Ember.get; | |
export default Ember.Object.extend({ | |
fullName: computed('firstName', 'lastName', function() { | |
return get(this, 'firstName') + ' ' + get(this, 'lastName'); | |
}), | |
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'; | |
import DS from 'ember-data'; | |
var computed = Ember.computed; | |
var get = Ember.get; | |
var RSVP = Ember.RSVP; | |
export default DS.Model.extend({ | |
name: DS.attr('string'), | |
players: DS.hasMany('player', { async: true }), |
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 DS from 'ember-data;' | |
export default DS.Model.extend({ | |
name: DS.attr('string'), | |
score: DS.attr('number'), | |
team: DS.belongsTo('team', { async: true }), | |
coaches: DS.hasMany('coach', { async: true }) | |
}); |
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'; | |
import notifyParents from 'notify-parents'; | |
var observer = Ember.observer; | |
var computed = Ember.computed; | |
var not = computed.not; | |
var get = Ember.get; | |
export default Ember.Object.extend({ | |
firstName: 'Lauren', |