Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paginate with postData #102

Open
AmritKrsh opened this issue Jun 28, 2017 · 5 comments
Open

paginate with postData #102

AmritKrsh opened this issue Jun 28, 2017 · 5 comments

Comments

@AmritKrsh
Copy link

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

@draaslan
Copy link

+1

@begriffs
Copy link
Owner

To help debug, what do all the settings look like for your pagination control?

@AmritKrsh
Copy link
Author

AmritKrsh commented Jun 30, 2017

<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

@begriffs
Copy link
Owner

begriffs commented Jul 1, 2017

Thanks for the bug report. This functionality was added in #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.

@papaiatis
Copy link
Contributor

@AmritKrsh postData should be post-data. Please change it and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants