This is my code.
I m getting data through ng-repeat and showing it as shown in below code.
What I want is if I click on either of the name then it should ale
You are going good so far. You added the ng-click event. But aal you need to do to get the name in controller is, you need to paas the current item as arguement
See Here
{{x.firstname}}
and in the controller make a function
$scope.selectInfo = function (item) {
alert(item.firstname);
// Or use this to do whatever you want
}