how to get value of an input field with same id in agular4 : This is my form

        <button (click)="M_add()">Add</button>
        <tbody id="_tbody">
        </tbody>
when the add button clicks,it will create input feild

    var tbody = document.getElementById("_tbody");
    var row = document.createElement("tr");
    var col = document.createElement("td");
    var col_index = document.createElement("input");
    col_index.setAttribute("class", "index");
    col_index.setAttribute("id", "index");
    row.appendChild(col_index);
    tbody.appendChild(row);

i need to retrieve value from each input feild,how to get it ?
