ember-query-params
ember-query-params copied to clipboard
Different controllers but same query params, how do you achieve it?
I have a controller say test with queryParams as sort and another controller as test2 with QP as sort
I save this QP in local store, so that next time the same controller is visited (after a hard refresh), the last saved QP is opened.
Since they both have the same QP, the change doesn't reflect. Any workaround?
Could you provide some example code?
@knownasilya will this help?
https://ember-twiddle.com/ae3c8b7414778150162cb653990cc9ed?openFiles=controllers.route2.js%2C&route=%2Froute2
Sorry, I let this drop. Will have a look.
Waiting for this one 🙂
The solution is "place it on the common ancestor", in the case of the twiddle that would be the application controller.