gokatz
12/18/2016 - 2:31 PM

default qp value

default qp value

{
  "version": "0.10.6",
  "EmberENV": {
    "FEATURES": {}
  },
  "options": {
    "use_pods": false,
    "enable-testing": false
  },
  "dependencies": {
    "jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
    "ember": "1.13.13",
    "ember-data": "2.9.0",
    "ember-template-compiler": "1.13.13",
    "ember-testing": "1.13.13"
  },
  "addons": {}
}
<h1>Welcome to {{appName}}</h1>
<br>
{{#link-to 'one'}}ONE{{/link-to}}
{{#link-to 'two'}}TWO{{/link-to}}
<br>
{{outlet}}
<br>
<br>
import Ember from 'ember';

export default Ember.Route.extend({
});
import Ember from 'ember';

export default Ember.Route.extend({
});
import Ember from 'ember';

export default Ember.Route.extend({
  actions: {
  	goToOne() {
    	this.transitionTo('one');
    },
    goToTwo() {
    	this.transitionTo('two');
    },
  }
});
import Ember from 'ember';
import config from './config/environment';

const Router = Ember.Router.extend({
  location: 'none',
  rootURL: config.rootURL
});

Router.map(function() {
  this.route('one');
  this.route('two');
});

export default Router;
import Ember from 'ember';

export default Ember.Controller.extend({
  queryParams: [
  	'test'
  ],
  test: 'b'
});
import Ember from 'ember';

export default Ember.Controller.extend({
  queryParams: [
  	'test'
  ],
  test: 'a'
});
import Ember from 'ember';

export default Ember.Controller.extend({
  appName: 'Ember Twiddle'
});