Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f2910e9

Browse files
committedJan 18, 2017
fix($state): Fix "Possibly unhandled rejection" by catch()ing the transition promise
Now calling `.catch()` on the transition promise Closes #3246 Closes #2889
1 parent cc62abe commit f2910e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/state.js

+1
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,7 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {
12191219
return $q.reject(error);
12201220
});
12211221

1222+
transition.catch(angular.noop);
12221223
return transition;
12231224
};
12241225

2 commit comments

Comments
 (2)

codehand commented on Feb 7, 2017

@codehand

Can't resolve all parameters for UIRouter: (?, ?) beta 4.0

christopherthielen commented on Feb 11, 2017

@christopherthielen
ContributorAuthor

You are commenting on a commit to the legacy branch (pre-1.0) of angular-ui-router (for angular 1.x)

Please sign in to comment.