Create a function that calculates the actual index.
getActualIndex(index : number) {
return index + pageSize * pageIndex;
}
You can get the pageSize and pageIndex from the paginator. Then, in the template use this function:
formControlName="getActualIndex(index)"