I\'m trying to set as default the first occurrence in this example: plunkr
getting the following error:
Unhandle
By this you can get any index in *ngFor
loop in ANGULAR ...
-
// write your code...
// write your code...
We can use these alias in *ngFor
index
: number
: let i = index
to get all index of object.first
: boolean
: let first = first
to get first index of object.last
: boolean
: let last = last
to get last index of object.odd
: boolean
: let odd = odd
to get odd index of object.even
: boolean
: let even = even
to get even index of object.