lundi 3 octobre 2016

How to pass an object to link-to + queryParams in Ember?

I'm currently in a situation that I need to pass one object to , but queryParams does not accept objects {}. I need this feature because I'm using this component in different templates. The reason for doing that is that one template uses some keywords to use as a filter that the other template does not use and vice-versa.

I started using my own helper to generate the link, but I realize that the anchor my helper was generating was reloading the whole page and link-to does not do that. I'd like to reproduce that behavior.

Is there a smart way to create a link using objects now? I saw some answers but they were all related to ember 1.+ and canary. In all of the answers they were saying it was not possible. I wonder if people have implemented this now or if a solution for this problem is being used currently and I could not find...

Thanks!




Aucun commentaire:

Enregistrer un commentaire