Label application


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>

  

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326969306&siteId=291194637
Recommended