标签:log classname nbsp div cli scope ng-repeat name res
html
<div ng-repeat="a in b" ng-click="click(a)" na-class="{{‘classname‘:data ===‘xxx‘}}"></div>
controller
$scope.data = resp.xxxx;
$scope.click=function(e){
console.log(e);
}
标签:log classname nbsp div cli scope ng-repeat name res
原文地址:http://www.cnblogs.com/dddmw/p/6216728.html