title: How can I tell AngularJS to "refresh"
body: <p>I have a click event that happens outside the scope of my custom directive, so instead of using the "ng-click" attribute, I am using a jQuery.click() listener and calling a function inside my scope like so:</p>
  
  <pre><code>$('html').click(function(e) {
    scope.close();
  );
  </code></pre>
  
  <p>close() is a simple function that looks like this:</p>
  
  <pre><code>scope.close = function() {
    scope.isOpen = false;
  }
  </code></pre>
  
  <p>In my view, I have an element with "ng-show" bound to isOpen like this:</p>
  
  <pre><code>&lt;div ng-show="isOpen"&gt;My Div&lt;/div&gt;
  </code></pre>
  
  <p>When debugging, I am finding that close() is being called, isOpen is being updated to false, but the AngularJS view is not updating. Is there a way I can manually tell Angular to update the view? Or is there a more "Angular" approach to solving this problem that I am not seeing?</p>