Skip to main content
the link is broken on the normal answer view but appears intact when editing. perhaps this will fix the link.
Source Link
Rohan
  • 8k
  • 5
  • 26
  • 35

I found this to be the shortest working way to refresh with ui-router:

$state.go($state.current, {}, {reload: true}); //second parameter is for $stateParams 

Update for newer versions:

$state.reload(); 

Which is an alias for:

$state.transitionTo($state.current, $stateParams, { reload: true, inherit: false, notify: true }); 

Documentation: https://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state#methods_reload

I found this to be the shortest working way to refresh with ui-router:

$state.go($state.current, {}, {reload: true}); //second parameter is for $stateParams 

Update for newer versions:

$state.reload(); 

Which is an alias for:

$state.transitionTo($state.current, $stateParams, { reload: true, inherit: false, notify: true }); 

Documentation: https://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state#methods_reload

I found this to be the shortest working way to refresh with ui-router:

$state.go($state.current, {}, {reload: true}); //second parameter is for $stateParams 

Update for newer versions:

$state.reload(); 

Which is an alias for:

$state.transitionTo($state.current, $stateParams, { reload: true, inherit: false, notify: true }); 

Documentation: https://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state#methods_reload

I found this to be the shortest working way to refresh with ui-router:

$state.go($state.current, {}, {reload: true}); //second parameter is for $stateParams 

Update for newer versions:

$state.reload(); 

Which is an alias for:

$state.transitionTo($state.current, $stateParams, { reload: true, inherit: false, notify: true }); 

Documentation: https://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state#methods_reload

I found this to be the shortest working way to refresh with ui-router:

$state.go($state.current, {}, {reload: true}); //second parameter is for $stateParams 

I found this to be the shortest working way to refresh with ui-router:

$state.go($state.current, {}, {reload: true}); //second parameter is for $stateParams 

Update for newer versions:

$state.reload(); 

Which is an alias for:

$state.transitionTo($state.current, $stateParams, { reload: true, inherit: false, notify: true }); 

Documentation: https://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state#methods_reload

Source Link
Rohan
  • 8k
  • 5
  • 26
  • 35

I found this to be the shortest working way to refresh with ui-router:

$state.go($state.current, {}, {reload: true}); //second parameter is for $stateParams