title: Is there a way to watch attribute changes triggered from outside the AngularJS world?
body: <p>I’m trying to understand interactions between the Angular world and the non-Angular world. </p>
  
  <p>Given a directive that one declares like this:</p>
  
  <pre><code>&lt;dir1 id="d1" attr1="100"/&gt;
  </code></pre>
  
  <p>If code outside angular changes the directive this way:</p>
  
  <pre><code>$("#d1").attr("attr1", 1000);
  </code></pre>
  
  <p>How can the directive know that one of its attribute has changed?</p>