Run state change in new digest

[ci skip]
pull/5562/head
Oliver Günther 8 years ago
parent 30698250e7
commit e46d816e35
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 3
      frontend/app/components/routing/ui-router.config.ts

@ -212,6 +212,7 @@ openprojectModule
.run(($location:ng.ILocationService,
$rootElement:ng.IRootElementService,
$timeout:ng.ITimeoutService,
$rootScope:ng.IRootScopeService,
$state:ng.ui.IStateService,
$window:ng.IWindowService) => {
@ -232,7 +233,7 @@ openprojectModule
const stateName = el.data('uiRoute');
const params = $rootScope.$eval(el.data('uiRouteParams')) || {};
$state.go(stateName, params);
$timeout(() => $state.go(stateName, params));
event.preventDefault();
return false;
} catch(e) {

Loading…
Cancel
Save