angularjs - Cannot access data inside multiple children tags from within an ng-repeat directive -


i'm trying pull off following block of code using ng-repeat.

<tr ng-repeat="category in categorylist"> <td>{{category.name}}</td> <td>{{category.customerswaiting}}</td> <td>{{category.waitingtime}}</td> </tr> 

unfortunately seems category not accessible inside last 2 td tags. have tried sorts of variations using ng-repeat-start , ng-repeat-end. none of them working. can access category in first element. can please show me how layout out tags using correct directive solve particular problem. need repeat tr tag each item in array 3 td tags in each row. in advance.

i think issue somewhere else because putting plnkr reveals working fine. elaborate issue is?

http://plnkr.co/edit/9vlkeqiefurec1dpa2ic?p=preview

this array of data i've used

$scope.categorylist = [ {   name: 'first',   customerswaiting: 20,   waitingtime: 2300 }, {   name: 'second',   customerswaiting: 40,   waitingtime: 230 }] 

with same markup

<tr ng-repeat="category in categorylist">     <td>{{category.name}}</td>     <td>{{category.customerswaiting}}</td>     <td>{{category.waitingtime}}</td>   </tr>   

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -