In Angularjs, it will refresh the page each time I come into a new page.
Now in Page1, I have already opened a modal dialog and written some texts in it, then I click a button it redirect to Page2.
There's a link now in the header like : Page1 -> Page2.
When I click Page1 of the link, it will return to Page1 with all former data kept(modal is opening, data is still there...)
How to accomplish system page state cache in angularJS?