Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tr *ngFor="let item of data; let in=index">
- <td>
- <input #unitNumber type="text" name="workPerformed-workcode-{{in}}" [(ngModel)] = "item.unitnumber" >
- </td>
- <td> <!-- Search option is given to chose the unit number----></td>
- </tr>
- @ViewChildren('unitNumber') enteredUnitNumbers;
- // for searching, I have used the material dialog box
- const dialogRef = this.dialog.open(SearchEquipmentComponent, dialogConfig);
- dialogRef.afterClosed().subscribe(
- data => {
- console.log(this.enteredUnitNumbers.toArray().map(x => x))
- });
Add Comment
Please, Sign In to add comment