1. The pseudo code of ng-repeat is as follows:
js:
elem.bind('click',function(){
$modal.open({
templateUrl : urlManager.$staticViewUrls.$getUrl( 'static/basis/html/ac/font- awesome' ),
backdrop : 'false',
controller : ['$scope', '$modalInstance', function($scope, $modalInstance) {
acResourceService.iconInfo().success( function(obj) { //call service, Data for background processing
var getIconinfo=JSON.parse(obj.moreData.data);//Processing background data through json
var icons=getIconinfo.icon;
var iconsBgcolor=getIconinfo.iconBgcolor;
$scope.icons=icons;
$scope. bgcolors=iconsBgcolor;
} );
html:
<div class="panel-body" style="height: 300px; width: 100%; overflow: auto;" data-platform-scroll="">
<i data-ng-repeat="icon in icons" class="{{icon.name}} {{icon.size}}"
data-ng-click="onclickIconViewOk('{{icon.name}} {{icon.fsize}}');" > 注意ng-reapt使用
</i >
</div>