Skip to content

Instantly share code, notes, and snippets.

@allthesignals
Last active September 25, 2017 19:39
Show Gist options
  • Select an option

  • Save allthesignals/503a45d44460402d3931a8e62655b44a to your computer and use it in GitHub Desktop.

Select an option

Save allthesignals/503a45d44460402d3931a8e62655b44a to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
queryParams: ['housingFilters.type','housingFilters.unitsMin', 'housingFilters.unitsMax', 'housingFilters'],
housingFilters: {
type: 'multi',
unitsMin: 100,
unitsMax: 200
},
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
JSON:
{<br/>
&nbsp; type: {{housingFilters.type}},<br/>
&nbsp; units: [{{housingFilters.unitsMin}}, {{housingFilters.unitsMax}}]<br/>
}<br/>
<br/>
Type: {{input type='text' value=housingFilters.type}}<br/>
Units Range: {{input type='text' value=housingFilters.unitsMin}}
{{input type='text' value=housingFilters.unitsMax}}
{{outlet}}
<br>
<br>
{
"version": "0.12.1",
"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.12.0",
"ember-template-compiler": "2.12.0",
"ember-testing": "2.12.0"
},
"addons": {
"ember-data": "2.12.1",
"ember-parachute": "0.3.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment