Skip to content

Instantly share code, notes, and snippets.

@arthur-s
Last active September 16, 2019 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arthur-s/f18762866b47e35b118d6a857642fc31 to your computer and use it in GitHub Desktop.
Save arthur-s/f18762866b47e35b118d6a857642fc31 to your computer and use it in GitHub Desktop.
checkbox mut get
import Controller from '@ember/controller';
export default Controller.extend({
appName: 'Ember Twiddle',
controller_values: {'foo': 'bar'},
controller_data: {},
someval: '444'
});
<h1>Welcome to {{appName}}</h1>
<br>
{{input type="checkbox" checked=checkedVal}} regular value - {{checkedVal}}
<br>
<br>
{{#x-select value=someval as |xs|}}
{{#xs.option value="111"}} -- {{/xs.option}}
{{#xs.option value="222"}} test it{{/xs.option}}
{{/x-select}}
<br>
{{someval}}
{{outlet}}
<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.18.2",
"ember-testing": "2.18.2"
},
"addons": {
"ember-data": "2.18.5",
"emberx-select": "3.1.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment