반응형
UI 라우터에서 등록된 상태를 열거하는 방법
ui-router를 사용할 때 등록된 모든 상태를 나열할 수 있는 방법이 있는지 알고 싶습니다.
다음의 문서를 참조해 주세요.$state.get()
최신 버전의 ui-module의 경우 함수에 인수를 전달하지 않으면 설정된 모든 상태 객체의 배열을 반환해야 합니다.
/**
* @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.
*/
언급URL : https://stackoverflow.com/questions/21324303/how-to-enumerate-registered-states-in-ui-router
반응형
'your programing' 카테고리의 다른 글
MongoDB에 저장된 어레이는 순서를 유지합니까? (0) | 2023.03.13 |
---|---|
Unmarshall DynamoDB JSON (0) | 2023.03.13 |
예기치 않은 문자가 포함된 png 파일을 로드할 수 없습니다. (0) | 2023.03.13 |
jq: 객체에서 키의 서브셋 선택 (0) | 2023.03.13 |
React Formik : 커스텀 onChange 및 onBlur 사용방법 (0) | 2023.03.13 |