加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – 如何枚举ui路由器中注册的状态?

发布时间:2020-12-17 08:29:23 所属栏目:安全 来源:网络整理
导读:我想知道如果有一个方法来列出所有注册的状态,当使用 ui-router 如果你查看$ state.get()的文档的最新版本的ui-router,你会注意到没有传递参数到函数应该返回一个所有配置的状态对象的数组。 /** * @ngdoc function * @name ui.router.state.$state#get *
我想知道如果有一个方法来列出所有注册的状态,当使用 ui-router
如果你查看$ state.get()的文档的最新版本的ui-router,你会注意到没有传递参数到函数应该返回一个所有配置的状态对象的数组。
/**
 * @ngdoc function
 * @name ui.router.state.$state#get
 * @methodOf ui.router.state.$state
 *
 * @description
 * Returns the state configuration object for any state by passing the name
 * as a string. Without any arguments it'll return a array of all configured
 * state objects.
 *
 * @param {string|object} stateOrName The name of the state for which you'd like 
 * to get the original state configuration object for.
 * @returns {object} State configuration object or array of all objects.
 */

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读