title: how to get href by ng-click a <a> in angular?
body: <p>let us say we have a </p>
  
  <pre><code>   &lt;a href = "/jsondata" ng-click="myFunction()"&gt;Click Here&lt;/a&gt;
  </code></pre>
  
  <p>in the angular based application.</p>
  
  <pre><code>$scope.myFunction= function(){
          // how to get the href
          $http.get(href).success(function(data) {
          })
  }
  </code></pre>
  
  <p>the requirement is to click the  and do a ajax request and get the json data from the server. since I choose to work on the angular, I don't know how to it in angular, since I don't know how to get the href attribute from the  element</p>