I have a filter list component which is supposed to update the data on the page. Depending on which filters are clicked in this component, I am trying to update my query parameters with it.
Right now, I have the filters working and logging out with correct parameters, but this.transitionToRoute()
is incorrect/not working. I think the version of this
is not what I'm expecting.
actions: {
updateQuery: function() {
//do stuff to get my newParams
console.log(newParams); //This echoes out nicely
this.transitionToRoute({queryParams: newParams}); //this returns "not a function"
return false;
}
}
The output for newParams
is:
{status: "KNOWN_TO_FAIL", owner: "spople,kuher,dwoods"}
so I know the params are correct, I just don't know how to change the URL parameters and update the data.
Another note which may be another question is that I need this to update only a specific div on the page and not the entire page. Am I barking up the wrong tree?