title: Angular's use of Inline JavaScript in HTML attributes is not "bad practice"?
body: <p>As I read through the Angular tutorials, I really like a lot of it, but isn't "ng-click" the equivalent of an inline onClick? My understanding was that the JavaScript community had determined inline JavaScript event handlers in your HTML was "bad practice."</p>
  
  <pre><code>&lt;img ng-src="{{img}}" ng-click="setImage(img)"&gt;
  </code></pre>
  
  <p>It would be great to know why this is no longer considered "incorrect" when using Angular.</p>
  
  <p>Source: <a href="http://docs.angularjs.org/tutorial/step_10" rel="nofollow noreferrer">http://docs.angularjs.org/tutorial/step_10</a></p>