Created
April 24, 2017 12:44
-
-
Save feanor07/6d469dd60903c9d06516cf93e6ecbc0b to your computer and use it in GitHub Desktop.
so#43580683
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
isDoneWithHeavyWork: false, | |
init() { | |
this._super(...arguments); | |
console.log('I am doing some serious stuff currently wait 3 seconds before showing me!'); | |
window.setTimeout(()=> { | |
this.set('isDoneWithHeavyWork', true); | |
this.get('doneInitializng')(); | |
}, 3000); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
isDoneWithHeavyWork: false, | |
init() { | |
this._super(...arguments); | |
console.log('I am doing some serious stuff currently wait 10 seconds before showing me!'); | |
window.setTimeout(()=> { | |
this.set('isDoneWithHeavyWork', true); | |
this.get('doneInitializng')(); | |
}, 10000); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
actions: { | |
componentAtTabDoneInitializing(tabIndex) { | |
this.set(`tab${tabIndex}FinishedInitializing`, true); | |
} | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.12.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.12.0", | |
"ember-template-compiler": "2.12.0", | |
"ember-testing": "2.12.0" | |
}, | |
"addons": { | |
"ember-bootstrap":"1.0.0-alpha.11" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment