ember-query-params icon indicating copy to clipboard operation
ember-query-params copied to clipboard

Different controllers but same query params, how do you achieve it?

Open abhilashlr89 opened this issue 8 years ago • 5 comments

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?

abhilashlr89 avatar Sep 09 '16 06:09 abhilashlr89

Could you provide some example code?

knownasilya avatar Sep 09 '16 12:09 knownasilya

@knownasilya will this help?

https://ember-twiddle.com/ae3c8b7414778150162cb653990cc9ed?openFiles=controllers.route2.js%2C&route=%2Froute2

abhilashlr89 avatar Sep 11 '16 07:09 abhilashlr89

Sorry, I let this drop. Will have a look.

knownasilya avatar Oct 28 '16 18:10 knownasilya

Waiting for this one 🙂

shankarsridhar avatar Dec 06 '16 06:12 shankarsridhar

The solution is "place it on the common ancestor", in the case of the twiddle that would be the application controller.

knownasilya avatar Dec 06 '16 20:12 knownasilya