AngularJS 1.x Reload Controller On State Change

ozhanli
Coodehub
Published in
1 min readJul 25, 2016

In AngularJS 1.x $state.reload does not reload state/controller.

On state changes to reload a controller use $state as

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

or use ui-sref as

<a ui-sref="main" ui-sref-opts="{reload: true, inherit: false}">

--

--