@@ -64,11 +64,11 @@ import {Transition} from "../transition/transition";
64
64
let fromParams = $transition$ . params ( "from" ) ;
65
65
66
66
if ( enabledEvents . $stateChangeSuccess ) {
67
- let startEvent = $rootScope . $broadcast ( '$stateChangeStart' , $transition$ . to ( ) , toParams , $transition$ . from ( ) , fromParams , $transition$ ) ;
67
+ let startEvent = $rootScope . $broadcast ( '$stateChangeStart' , $transition$ . to ( ) , toParams , $transition$ . from ( ) , fromParams , $transition$ . options ( ) , $transition$ ) ;
68
68
69
69
if ( startEvent . defaultPrevented ) {
70
70
if ( enabledEvents . $stateChangeCancel ) {
71
- $rootScope . $broadcast ( '$stateChangeCancel' , $transition$ . to ( ) , toParams , $transition$ . from ( ) , fromParams , $transition$ ) ;
71
+ $rootScope . $broadcast ( '$stateChangeCancel' , $transition$ . to ( ) , toParams , $transition$ . from ( ) , fromParams , $transition$ . options ( ) , $transition$ ) ;
72
72
}
73
73
//Don't update and resync url if there's been a new transition started. see issue #2238, #600
74
74
if ( $state . transition == null ) $urlRouter . update ( ) ;
@@ -90,7 +90,7 @@ import {Transition} from "../transition/transition";
90
90
* @param from
91
91
* @param fromParams
92
92
*/
93
- $rootScope . $broadcast ( '$stateChangeSuccess' , $transition$ . to ( ) , toParams , $transition$ . from ( ) , fromParams ) ;
93
+ $rootScope . $broadcast ( '$stateChangeSuccess' , $transition$ . to ( ) , toParams , $transition$ . from ( ) , fromParams , $transition$ . options ( ) , $transition$ ) ;
94
94
} ) ;
95
95
}
96
96
@@ -117,7 +117,7 @@ import {Transition} from "../transition/transition";
117
117
* @param {Object } fromParams The params supplied to the `fromState`.
118
118
* @param {Error } error The resolve error object.
119
119
*/
120
- let evt = $rootScope . $broadcast ( '$stateChangeError' , $transition$ . to ( ) , toParams , $transition$ . from ( ) , fromParams , error ) ;
120
+ let evt = $rootScope . $broadcast ( '$stateChangeError' , $transition$ . to ( ) , toParams , $transition$ . from ( ) , fromParams , error , $transition$ . options ( ) , $transition$ ) ;
121
121
122
122
if ( ! evt . defaultPrevented ) {
123
123
$urlRouter . update ( ) ;
0 commit comments