angular-paginate-anything
angular-paginate-anything copied to clipboard
paginate with postData
not working with post methods, I have set the method to post and also added post data but the request is still going as GET
+1
To help debug, what do all the settings look like for your pagination control?
<bgf-pagination class="col-lg-10 col-md-10 col-sm-8 col-xs-8 pull-left" method="POST" range-from="rangeFrom" range-to="rangeTo" num-items="numItems" page="page" per-page="perPage" url="'some_api_url'" link-group-size="2" collection="testCollection" postData="searchData" transform-response="testDataFromServer" templateUrl="tpl/paginate-anything-copy.html"> </bgf-pagination>
defined the control as above, also tried "post-data" in place of "postData". above code works fine with GET, I just want to make it work with POST req
Thanks for the bug report. This functionality was added in https://github.com/begriffs/angular-paginate-anything/pull/77 by @papaiatis and perhaps he can spot what's going wrong.
To my casual inspection it seems like things should work, since the variables are included in the scope, then passed to the connection config and that config is included in the http request.
I acknowledge that the bug is happening for you though, and puzzled about what's going on.
@AmritKrsh postData should be post-data. Please change it and try again.