I'm trying to make pagination in angularjs. I'm using for frontend angularjs, and I get data trough http request from app made in codeigniter php. Every tutorial or script I did found for angular pagination lose page number after page refreshed. Also if you go on some another page and back pagination will start again from first page. How can I solve this problem, what is the best solution? Do I need remember page number in session, or calculate on backend which records I will return?
Any idea?