import Ember from 'ember'; let answer = 0; export default Ember.Component.extend({ isSaving: false, clickCount: 0, actions: { cancel() { this.set('isSaving', false); this.set('clickCount', 0); }, save() { this.incrementProperty('clickCount'); this.set('isSaving', true); for (let i = 0; i < 10000; i++) { console.log(i * i + 'hello'); } } } });