import Ember from 'ember'; export default Ember.Service.extend({ subscriptions: Ember.computed(function() { return Ember.A(); }), addSubscription(str) { this.get('subscriptions').pushObject(Ember.Object.create({ id: str })); }, init() { this._super(); let i = 0; setInterval(() => { i++; console.log(this.get('subscriptions')); this.get('subscriptions').forEach(subscription => { subscription.setProperties({ BID: i + 0.1, OFR: i - 0.1, }); }); }, 1000); }, });