angular - Angular2 nested ngFor -


i need equivalent of in angular2:

<?php foreach ($somethings $something) {     foreach ($something->children $child) {         echo '<tr>...</tr>';     } } 

can achieved ngfor , not adding new elements between <table> , <tr>?

i have sample might similar want:

<table id="spreadsheet">     <tr *ngfor="let row of visiblerows">         <td class="row-number-column">{{row.rowindex}}</td>         <td *ngfor="let col of row.columns">             <input  data-id="{{col.rowindex}}-{{col.columnindex}}" [value]="col.cellvalue" (input)="col.cellvalue = $event.target.value" (click)="model.selectcolumn(col)" (keyup)="navigate($event)" />         </td>     </tr> </table> 

i use render out spreadsheet looking grid seen here: http://www.syntaxsuccess.com/angular-2-samples/#/demo/spreadsheet


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -