Created
October 24, 2016 09:50
-
-
Save siva-sundar/9ca221081787041edf9983dcf0dd1a7a to your computer and use it in GitHub Desktop.
module context
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 mixinInject from 'twiddle/mixins/file'; | |
import Ember from 'ember'; | |
const { Object } = Ember; | |
const A =5; | |
export default Ember.Controller.extend(mixinInject, { | |
appName: 'Ember Twiddle', | |
init() { | |
this._super(...arguments); | |
console.log(Object.keys, A); | |
} | |
}); |
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'; | |
const A =6; | |
export default Ember.Mixin.create({ | |
init() { | |
this._super(...arguments); | |
Ember.run.later(this, () => { | |
console.log(Object.keys); | |
console.log(A); | |
}, 5000); | |
} | |
}); |
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.10.6", | |
"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.9.0", | |
"ember-data": "2.9.0", | |
"ember-template-compiler": "2.9.0", | |
"ember-testing": "2.9.0" | |
}, | |
"addons": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment