I want to add a td dynamically in a html table, with an input inside, I want the input to have ngModel attribute and to be like this:
<td><input type="number" name="Price" [(ngModel)]="Product.Price"></td>
I added the td in my ts, like:
td = document.createElement('td');
input = document.createElement('input');
input.setAttribute('type', 'number');
input.setAttribute('name', 'Price');
td.appendChild(input);
tr.appendChild(td);
now my question is, how to add ngModel to the dynamic td?