Reload main view on tab click

When clicking a tab, I wish for the default view to reload (so any cached views are reset).
To demonstrate,
Looking at the app viewport example on http://ionicframework.com/docs/nightly/api/directive/ionTabs/ - if you click:

about (in the bottom nav)
tabs nav stack (the button in this view)
then click away from this view, say home (in the bottom nav)

If you then click - about (in the bottom nav) again, the view is cached and set to the tab nav stack view. I need the view to reload, so the initial root view shows again.

Can anyone provide some advice, thanks

here is an implementation that solved this

1 Like

Excellent thanks, this was the line, after adding ng-click="onTabSelected()" to the ion-tab

  $scope.onTabSelected = function() {
    $state.go('tabs.home');
  }