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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -