how should I define an index variable when angular material table is used as ngFor is not used in this table.
I did search for it in the documentation but index is
For anyone who has set the multiTemplateDataRows property of mat-table to true, you can't use index. Instead you have use either dataIndex or renderIndex.
multiTemplateDataRows
index
dataIndex
renderIndex
{{i}}
See https://github.com/angular/material2/issues/12793