title: ng-click does not work for second time with ng-hide interaction
body: <p>I have two buttons and only 1 of them appears at a time. First one is called "Offline mode" other one is "Online mode". They appear like this on HTML:</p>
  
  <pre><code>&lt;a ng-hide="offlineMode == true" ng-click="offlineMode()"&gt;Offline Mode&lt;/a&gt; 
  &lt;a ng-show="offlineMode == true" ng-click="onlineMode()"&gt;Online Mode&lt;/a&gt;
  </code></pre>
  
  <p>When I click to "Offline mode" for the first time it successfuly swaps into "Online mode" button. When I click "Online mode" after that it swaps back to "Offline mode". After this the button becomes unclickable. It does not enter inside the function. </p>
  
  <p>JS:</p>
  
  <pre><code>$scope.offlineMode = function() {
      $scope.offlineMode = true;
      // do other things
  };
  
  $scope.onlineMode = function() {
      $scope.offlineMode = false;
      // do other things
  };
  </code></pre>