You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the Angular router the target route is passed as second parameter to the handler. For the UI router, the target state and the target state parameters are passed as parameters two and three.
280
279
280
+
After a successful login, the default behaviour is to transition to the default route. To change this behaviour, override the `authenticationSuccessHandler` and return false to abort the transition. Override the default `authenticationSuccessHandler` like this:
281
+
282
+
```javascript
283
+
user.onAuthenticationSuccess(function() {
284
+
// hide popup, do transition, ...
285
+
286
+
// return true to transition to the default route.
0 commit comments