ngfor index code example
Example 1: ngfor index
/*
ngFor with index in angular is used here for generating 'li' element till the studentDetails array length.
And also make a note if you are using angular 1 then you have to replace 'let' with '#', but its ok if you are using angular 2 or above.
*/
-
{{student}}
/*
I hope it will help you.
Namaste
*/
Example 2: ngfor index
-
{{item}}
{{i}}