You need to access the index within the scope of *ngFor
directive, so you should write it like below -
<tr *ngFor=let st of stList;let i = index">
<td>{{i+1}}</td>
/// other columns
</tr>
notice the let
keyword , it restricts the scope of the variable within the *ngFor
only.