let us say we have a 

```
   <a href = "/jsondata" ng-click="myFunction()">Click Here</a>

```

in the angular based application.

```
$scope.myFunction= function(){
        // how to get the href
        $http.get(href).success(function(data) {
        })
}

```

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