问题描述:

I'm trying to create a query param link component. The layout for my component looks something like this:

{{#link-to routeName (query-params filter=paramValue)}}

{{text}}

{{/link-to}}

routeName and paramValue are "bound" just fine to my component class. But I'd like my component to also specify the query param name (in this case it's hardcoded as "filter". How can I bind the name of the query param to a value on my component (I want "filter" to be a variable)?

Should I just forget this method and send an action up to a route with all the properties needed to do a transitionTo?

相关阅读:
Top