<html ng-app="compile"> <head> <script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script> </head> <body> <div ng-controller="compileCtrl"> <div ng-repeat="stu in data"> <span>{{stu.name}}</span> <span>{{stu.sex}}</span> <a ng-click="updateModuleInfo(stu)">updateModuleInfo</a> </div> </div> <script type="text/javascript"> var app = angular.module("compile", []); app.controller("compileCtrl", ['$scope',function($scope){ $scope.data =[ {name:"jj", sex : "female"}, {name:"zz", sex : "male"} ]; $scope.updateModuleInfo = function( module ){ console.log("module : " + module); } }]); </script> </body> </html>