title: How can I make my Ionic Button refresh all ion-views. (Preferable in most just revaluate a ng-switch)
body: <p>in my view I have a <code>ng-switch</code> like:</p>
  <pre><code>&lt;div ng-switch on=&quot;team.isFavorite&quot;&gt;
      &lt;button class=&quot;button button-energized snbutton&quot; ng-switch-when=&quot;false&quot; ng-click=&quot;makeTeamFavorite()&quot;&gt;
        Show team on dashboard
      &lt;/button&gt;
      &lt;p class=&quot;snmsg&quot; ng-switch-default&gt;
        This team is shown on the dashboard
      &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  <p>How can I make my Ionic Button refresh all ion-views.<br/>
  <em>Preferable</em> in most just reevaluate a <code>ng-switch</code>, in 1 reload EVERYTHING)</p>
  <h2>What I tried in my controller:</h2>
  <pre><code>.controller('List-PeopleCtrl', function($ionicHistory, $state, $scope, $stateParams, Teams) {
    $scope.makeTeamFavorite = function() {
        Teams.setFavoriteId($stateParams.teamId);
        $ionicHistory.clearCache();
        $state.go($state.current);
    }
    $scope.team = Teams.get($stateParams.teamId);
    $scope.team.isFavorite = Teams.getFavoriteId()==$stateParams.teamId;
    $scope.people = Teams.members($stateParams.teamId);
  })
  </code></pre>
  <p>it would invalidate all caches I guess but it didn't work anyway :D</p>
  <h2>Note</h2>
  <ul>
  <li>I searched but didn't find anything to do this..</li>
  <li>I don't want to mark my ion view with <code>cache=false</code> and opt out of all caching</li>
  <li>I <em>think</em> this is  ionic specific but it could be my general lack of knowledge concerning AngularJS :D</li>
  <li><strong>the point is it works (without clearing the cache) when I next open the view again .. just that it isn't reloaded while looking at it</strong></li>
  </ul>
  <p>EDIT:
  I also tried with:</p>
  <pre><code>      $ionicHistory.clearCache();
        $state.go($state.current, {}, { reload: true });      
  </code></pre>
  <p>or just</p>
  <pre><code>      $state.go($state.current, {}, { reload: true });      
  </code></pre>
  <p>NO LUCK</p>