Is there an independent module for angualr view cache?


Hi, I am going to develop a web project with angularjs and ui-router, without Ionic Lib. I found that everytime I use $state.go or use browser’s backbutton to goback, the DOM of currentView would be destroy and the new View would be rebuild by rerunning of scope, so that everytime the data wounld be loaded and rendered from server and the scrollbar return to top. These cause a bad experience. I know that ionic has view cache and ionHistory which really solve this problem,but I don’t want to get the whole lib into my web project. Is there an independent module for this in ionic? Or any other angular module can solve this problem?