Skip to content

Instantly share code, notes, and snippets.

@0000marcell
Created January 26, 2018 17:13
Show Gist options
  • Save 0000marcell/ae84dba8b9b478a347f30ee4fe52ba31 to your computer and use it in GitHub Desktop.
Save 0000marcell/ae84dba8b9b478a347f30ee4fe52ba31 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
queryParam: ['category'],
category: false,
actions {
filter(){
}
}
});
import Model from "ember-data/model";
import attr from "ember-data/attr";
import { belongsTo, hasMany } from "ember-data/relationships";
export default Model.extend({
category: attr('string')
});
{{input type="checkbox" checked=category}}
{{category}}
{
"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.16.2",
"ember-template-compiler": "2.16.2",
"ember-testing": "2.16.2"
},
"addons": {
"ember-data": "2.16.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment