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
Post a Comment