Angularjs label use finishing

Continually updated.....

A, select

SetmealList field is set to the received data, sname is to be displayed, Object properties
 套餐类型:<select style="width: 150px;height: 25px;" ng-model="searchEntity.sid" ng-options="item.sid as item.sname for item in setmealList">
    </select>

 

Second, through the array (set) The Number Display Name

$ Scope.playstatus = [ 'unpaid', 'paid']; // js defined array name, note index from 0
<td>{{playstatus[info.payresult]}}</td>
setmealList is received from the data set to the background, attention index starts from 0. The operator does not support brackets
<td>{{setmealList[info.sid].sname}}</td>

 

Guess you like

Origin www.cnblogs.com/zeussbook/p/11316175.html