Skip to content

Instantly share code, notes, and snippets.

@cristinawithout
Created February 14, 2019 22:09
Show Gist options
  • Save cristinawithout/ffedd434b4fd5a1d61716dc8d24f775d to your computer and use it in GitHub Desktop.
Save cristinawithout/ffedd434b4fd5a1d61716dc8d24f775d to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
key: 'keyProp',
test: Ember.Object.create({keyProp: 'NEW'})
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<button {{action (mut (get test key)) "CHECK"}}>Test</button>
value: {{get test key}} -- value: {{test.keyProp}}
<br>
<br>
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "2.16.2",
"ember-template-compiler": "2.16.2",
"ember-testing": "2.16.2"
},
"addons": {
"ember-data": "3.4.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment