Skip to content

Instantly share code, notes, and snippets.

@camskene
Created March 11, 2017 01:06
Show Gist options
  • Save camskene/39152761ea63e52abfe95a0202b22005 to your computer and use it in GitHub Desktop.
Save camskene/39152761ea63e52abfe95a0202b22005 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
config: undefined,
init() {
this._super(...arguments);
if (!this.get('config')) {
throw Ember.assert('Uh oh config not defined');
}
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
The value of `config` is: {{config}}
{
"version": "0.11.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.11.0",
"ember-data": "2.11.0",
"ember-template-compiler": "2.11.0",
"ember-testing": "2.11.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment