我有以下ng-repeat
来电显示平面' AVAILABLE'或者' FULL'在前端。需要通过修改html以从$scope
读取来使其更具动态性。
<tbody>
<tr ng-repeat="hour in workhours">
<td >{{hour}}:00 - {{hour+1}}:00</td>
<td ng-class="{'full' : !entry.HoursAvailable.includes(hour)}"
ng-click="checkSlotAvailability(hour, jobLength, entry, data)"
ng-repeat="entry in data.calendar" >
{{entry.HoursAvailable.includes(hour) ? 'AVAILABLE' : 'FULL'}}
</td>
</tr>
</tbody>
我希望在controller.js中读取$scope.data.response
的回复
答案 0 :(得分:1)
你可以这样做
SET CHARACTER SET