Guest User

Untitled

a guest
Oct 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <tr *ngFor="let item of data; let in=index">
  2. <td>
  3. <input #unitNumber type="text" name="workPerformed-workcode-{{in}}" [(ngModel)] = "item.unitnumber" >
  4. </td>
  5. <td> <!-- Search option is given to chose the unit number----></td>
  6. </tr>
  7.  
  8. @ViewChildren('unitNumber') enteredUnitNumbers;
  9.  
  10. // for searching, I have used the material dialog box
  11. const dialogRef = this.dialog.open(SearchEquipmentComponent, dialogConfig);
  12.  
  13. dialogRef.afterClosed().subscribe(
  14. data => {
  15. console.log(this.enteredUnitNumbers.toArray().map(x => x))
  16. });
Add Comment
Please, Sign In to add comment