Skip to content

Instantly share code, notes, and snippets.

@selvagsz
Last active February 1, 2018 03:53
Show Gist options
  • Save selvagsz/f4b8730b36e60efb709ad9aec0b017a2 to your computer and use it in GitHub Desktop.
Save selvagsz/f4b8730b36e60efb709ad9aec0b017a2 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
goToHell() {
return true
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<div {{action "goToHell"}}>
<label>
{{input type="checkbox" checked=asd}}
Click Me (Won't work)
</label>
</div>
<div {{action "goToHell" preventDefault=false}}>
<label>
{{input type="checkbox" checked=asd}}
Click Me (Works!!!)
</label>
</div>
<br>
<br>
{
"version": "0.13.0",
"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.15.3",
"ember-template-compiler": "2.15.3",
"ember-testing": "2.15.3"
},
"addons": {
"ember-data": "2.16.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment