import Route from 'ember-route';
import injectService from 'ember-service/inject';

export default Route.extend({
  navigation: injectService(),
  browse: injectService(),

  activate: function () {
    let selected = this.get('browse.isBrowseExperimentEnabled') ? 'Popular' : 'Channels';

    this.get('navigation').setSelected(selected);
  }
});
