title: How can I set a variable when clicking anywhere in the browser window?
body: <p>I have a dropdown menu on my site that is controlled by <code>ng-show</code>. When the user clicks on a button they see the dropdown. When they click again, the dropdown is hidden:</p>
  
  <pre><code>&lt;div class="button" ng-click="show = !show"&gt;Click Me&lt;/div&gt;
  &lt;div ng-show="show" ng-init="show = false"&gt;
      &lt;div&gt;You can see me now!&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This works fine. But, what I want is for <code>show</code> to be set to false if the user clicks anywhere in the window that is not the div with class "button". How can I achieve this?</p>