ember-cli-pagination
ember-cli-pagination copied to clipboard
setOtherParams should refresh page number
Context: Paged remote array
It would be great to add function setOtherParams
to docs.
Use case: It can be used for adding filter parameters to ajax request.
Also, setOtherParams
triggers pageChanged
which, technically, isn't correct as page is not changed.
Although, property page
should be set to 1 after changing a request parameter because pagination context has changed.
I didn't get too much into the code but it makes sense to observe otherParams
and fetch new data after something changes in it.