Skip to content

Instantly share code, notes, and snippets.

@luxzeitlos
Created January 26, 2017 01:58
Show Gist options
  • Save luxzeitlos/3b98b225ea16be4b5ddf4eef972d786a to your computer and use it in GitHub Desktop.
Save luxzeitlos/3b98b225ea16be4b5ddf4eef972d786a to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
isAdmin: true,
});
{{isAdmin}}
<input type="radio" name="isAdmin" checked=isAdmin onclick={{action (mut isAdmin) true}} />
<input type="radio" name="isAdmin" checked={{not isAdmin}} onclick={{action (mut isAdmin) false}} />
{
"version": "0.11.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.10.2",
"ember-data": "2.11.0",
"ember-template-compiler": "2.10.2",
"ember-testing": "2.10.2"
},
"addons": {
"ember-truth-helpers": "1.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment