Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
_qpDelegate
import Ember from 'ember';
export default Ember.Controller.extend({
appName: '_qpDelegate bug'
});
import Ember from 'ember';
export default Ember.Controller.extend({
shared: Ember.inject.service('shared-state'),
queryParams:[
{"shared.isChecked": "checked"}
]
});
import Ember from 'ember';
export default Ember.Controller.extend({
shared: Ember.inject.service('shared-state'),
queryParams:[
{"shared.isChecked": "checked"}
],
});
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route("home", { path: '/' });
this.route("dashboard", { path: '/dashboard' });
});
export default Router;
import Ember from 'ember';
export default Ember.Route.extend({
shared: Ember.inject.service('shared-state')
});
import Ember from 'ember';
export default Ember.Route.extend({
shared: Ember.inject.service('shared-state')
});
import Ember from 'ember';
export default Ember.Service.extend({
isChecked: true,
forcePropertyChange(){
//toggle the property to force a property change
this.toggleProperty('isChecked');
//this.toggleProperty('isChecked');
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
<h1>Dashboard</h1>
Steps to reproduce.
<ol>
<li>
<label>
click the checkbox {{input type="checkbox" checked=(mut shared.isChecked) }} before transistioning to dashboard to force error
</label>
</li>
<li>
Transition to {{link-to 'home' 'home'}} after editing a property in the shared state.
</li>
</ol>
<h1>Home</h1>
Steps to reproduce.
<ol>
<li>
<label>
click the checkbox {{input type="checkbox" checked=(mut shared.isChecked) }} before transistioning to dashboard to force error
</label>
</li>
<li>
Transition to {{link-to 'dashboard' 'dashboard'}} after editing a property in the shared state.
</li>
</ol>
{
"version": "0.10.5",
"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.1.2",
"ember-data": "2.0.1",
"ember-template-compiler": "2.1.2",
"ember-testing": "2.1.2"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.