title: Close div when click outside the div with Angular
body: <p>Here is the thing with jquery when i want to close div when i click outside the div .</p>
  
  <pre><code> $(document).on("click", function (e) {
          if (e.target.id != "user-login-top" &amp;&amp; !$(e.target).closest("#user-login-wrapper").length) {
              $("#user-login-wrapper").removeClass("wide");
          }
      });  
  </code></pre>
  
  <p>what's the equal thing in angular ?<br>
  the <a href="http://jsfiddle.net/zqdmny41/" rel="nofollow"><strong>Fiddle</strong></a>  </p>
  
  <p>many thanks</p>