Skip to content

Instantly share code, notes, and snippets.

@ultimatedelman
Created September 1, 2016 17:25
Show Gist options
  • Save ultimatedelman/c7092aa5da8395e025710e1f49984dfa to your computer and use it in GitHub Desktop.
Save ultimatedelman/c7092aa5da8395e025710e1f49984dfa to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
x: undefined,
y: Ember.computed.mapBy('x', 'jobs')
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
{{y.length}}
<br>
<br>
{
"version": "0.10.4",
"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.7.0",
"ember-data": "2.7.0",
"ember-template-compiler": "2.7.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment