How to get selected value from ng-repeat
问题 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 alert me with that name. How can I achieve this?? var myfriend = angular.module('myfriend',[]); myfriend.controller('myfriendController', function($scope) { $scope.record = [ { "id" : "01", "firstname" : "Mohan ", "middlename" : "K", "lastname" : "Futterkiste1" },{ "id" : "04", "firstname" : "Rohan ", "middlename" : "A", "lastname" :