import Component from 'ember-component';
import observer from 'ember-metal/observer';
import computed from 'ember-computed';

export default Component.extend({

  _pop: observer('count', function () {
    this.rerender();
  }),

  displayCount: computed('count', function () {
    let count = this.get('count') || 0;
    return count > 99 ? "99+" : count;
  })

});
