I need to be able to re run my controllers in a state when I do a state.go without doing a full page refresh (this re-renders my entire template).
I have a button that takes me to the same state with a parameter like so (I start off on 'State.ChildState')
$state.go('State.ChildState', { param1: $scope.param1});
When I have a new value for param1 this works perfectly since it doesn't redraw my template. When I have the same param1 value however it does not run my controller ( I think because my url route is the exact same). I tried to have a check where if param1 is equal to $stateParam.param1 then just do
$state.reload()
but this causes some really weird behavior in my controllers
I also tried
$state.transtionTo($state.current, $stateParams, {
reload: true,
inherit: false,
notify: true
});
but this causes my entire template to be re rendered and it feels inconsistent with the case when the param1 value is different since that doesn't cause the template to be rerendered.
possible duplicate: Reloading current state - refresh data