阅读背景:

AngularJS ui-router保存以前的状态

来源:互联网 

I want to save the current state, I don't mean saving url and params, I want to save the entire view with scopes.. In fact, I want to implement a facebook like search system, but differently. I want to display the results on the entire page, so I'll replace the current main State, and when the search bar will be cleared, then we will restore the previous state. I don't want to rebuild the state to restore the state instantly (no server requests) + to avoid complicated operations (eg. infinite scroll data..). I've found ui'router extras (sticky state) plugin, but we need to define what state to save with states definitions.. I apologize for my bad english..I want to save the current state, I don't mean




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: