Skip to content

TransitionProperties object in ui router

Ivan Mrvelj edited this page Oct 24, 2016 · 9 revisions

Before start

Make sure you are familiar with:

Overview

PermTransitionProperties object is angular Value structure that if used with ui-router holds properties of the state transition inherited form $stateChangeStart event. It can met as parameter in all programmatic available methods in Permission module like: state access only and except, redirectTo used as functions or Permission events where some of the properties are exposed. All of the properties of PermTransitionProperties are described in the table below:

Value type Usage
toState Target state definition object
toParams Target state parameters object
fromState Source state definition object
fromParams Source state parameters object
options Transition options

💡 Note
As all the values passed to PermTransitionProperties are references to it's original values modification of those is not recommended, because may lead to unpredictable behaviour of ui-router.