Skip to content

Instantly share code, notes, and snippets.

@robomalo
Last active October 15, 2019 22:31
Show Gist options
  • Save robomalo/ed6778793f4a956925c4eb6f9cf443b6 to your computer and use it in GitHub Desktop.
Save robomalo/ed6778793f4a956925c4eb6f9cf443b6 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super();
this.set('inputId', this.elementId);
},
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
{{checkbox-item label="Checkbox One"}}
{{checkbox-item label="Checkbox Two"}}
<input type="checkbox" id="foo-{{inputId}}">
<label for="foo-{{inputId}}">
{{label}}
</label>
{
"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": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {
"ember-data": "3.4.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment