preserve动作/ UI的状态,角度的UI路由器 [英] preserve the actions/state of UI with angular-ui-router

查看:105
本文介绍了preserve动作/ UI的状态,角度的UI路由器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法用角UI的路由器实际上preserve最喜欢的本地应用程序做UI的状态呢?
例如,如果我是在主视图和我点击从而扩大手风琴列表,然后点击列表内的项目,并导航到另一个视图。接下来,我决定回到主视图。我想有结果导航时,进入主视图,而不是刷新页面还扩大了手风琴列表。

Is there any way with angular-ui-router to actually preserve the state of the UI like most native apps do? For example, if I was on the home view and I clicked an accordion list which expanded, then clicked on that item inside the list and navigated to another view. Next, I decide to go back to the home view. The result I would like to have is the accordion list still expanded when navigating back to the home view rather than refreshing the page.

有什么办法preserve动作/ UI的状态,我们航行来回视图之间?

Is there any way to preserve the actions/state of UI we navigating back and forth between views?

推荐答案

结帐UI路由器的演员的。我认为,深国重定向可能是你所期待的。

Checkout ui-router extras. I think "Deep State Redirect" probably what you are looking for.

这篇关于preserve动作/ UI的状态,角度的UI路由器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆