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

我想知道如果有一个方法来列出所有注册的状态,当使用 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.
 */

相关文章

ANGULAR.JS:NG-SELECTANDNG-OPTIONSPS:其实看英文文档比看中...
AngularJS中使用Chart.js制折线图与饼图实例  Chart.js 是...
IE浏览器兼容性后续前言 继续尝试解决IE浏览器兼容性问题,...
Angular实现下拉菜单多选写这篇文章时,引用文章地址如下:h...
在AngularJS应用中集成科大讯飞语音输入功能前言 根据项目...
Angular数据更新不及时问题探讨前言 在修复控制角标正确变...