import Component from 'ember-component';
import injectService from 'ember-service/inject';
import computed from 'ember-computed';

export default Component.extend({
  vodCoviews: injectService(),

  videos: computed('video', function () {
    this.get('vodCoviews').checkExperiment().then(() => {
      this.get('vodCoviews').findVodCoviews().then(() => {
        this.set('videos', this.get('vodCoviews.recommendedVods'));
      });
    });
  })

});
