angularjs - ng-repeat is not working inside the table row -
i want fetch data inside table not getting data. code here--
<div ng-controller="tenders"> <table ng-init="getviewprojectdetail('<?php echo $project_id ; ?>')"> <thead> <tr class="active"> <th colspan="4"> project detail: </th> </tr> </thead> <tbody> <tr> <th><b>project name :</b></th> <td ng-repeat="a in viewprojects"> {{a.id}} </td> {{viewprojects | json}} </tr> </tbody> </table> </div>
getting data in viewprojects through json unable print inside table row n each function of controller services , models working perfactly except this.
please me issue.
you can use <ng-container ng-repeat=""></ng-container>
angularjs condition without use html element below :
<table> <tr> <td>xyz</td> <ng-container ng-repeat="a in myarray"> <td>{{a.id}}</td> </ng-container> </tr> </table>
Comments
Post a Comment