Skip to content

Instantly share code, notes, and snippets.

@ultimatedelman
Created December 19, 2016 23:17
Show Gist options
  • Save ultimatedelman/2b9d3f9721203824540502912e5c484b to your computer and use it in GitHub Desktop.
Save ultimatedelman/2b9d3f9721203824540502912e5c484b to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
myProp: 10
});
import Ember from 'ember';
import myComponent from './my-component1'
export default myComponent.extend({
myProp: Ember.computed(function() {
return 20;
})
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
{{my-component1}}
{{my-component2}}
<br>
<br>
{
"version": "0.10.7",
"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.10.0",
"ember-data": "2.10.0",
"ember-template-compiler": "2.10.0",
"ember-testing": "2.10.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment