title: angular.js - simplest way to handle click inside controller
body: <p>is there any better way of handling clicks inside a controller than this?</p>
  
  <pre><code>&lt;div ng-controller="SomeController&gt;
    &lt;a href="/#!/something" ng-click="doTheSame()"&gt;link1&lt;/a&gt;
    &lt;a href="/#!/something" ng-click="doTheSame()"&gt;link2&lt;/a&gt;
    &lt;a href="/#!/something" ng-click="doTheSame()"&gt;link3&lt;/a&gt;
    ..
    &lt;a href="/#!/something" ng-click="doTheSame()"&gt;link99&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>in jQuery I would do something like:</p>
  
  <pre><code>$('div &gt; a').on('click', function() {
    // do some stuff
  });
  </code></pre>