Skip to content

Instantly share code, notes, and snippets.

@dfreeman
Created March 16, 2016 16:15
Show Gist options
  • Save dfreeman/380ea0a17fb1cea4e987 to your computer and use it in GitHub Desktop.
Save dfreeman/380ea0a17fb1cea4e987 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
queryParams: {
navigationFilter: 'navigation_filter'
},
navigationFilter: null
});
{{link-to 'with nothing' (query-params navigationFilter=null)}}<br>
{{link-to 'with a=1' (query-params navigationFilter='{"a":1}')}}<br>
{{link-to 'with a=1, b=2' (query-params navigationFilter='{"a":1,"b":2}')}}
{
"version": "0.6.4",
"EmberENV": {
"FEATURES": {}
},
"options": {
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.4.1/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.4.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.4.1/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment