Dear all,
I hope you are doing well. While creating one component using Angular 6 and ASP .Net MVC I am facing one problem.
I have one one array and I want to print it in a table so for I am using ngFor loop.
I want to call a function for every row. How can I do that?
What I have tried is :-
class="table">
# Game Platform Release "let game of games; let i = index; trackBy:GameName(i)"> {{i + 1}} {{game.game}} {{game.platform}} {{game.release}}
- GameName(index){
- alert(index);
- }
Please let me know if you have any suggestions.
Thanking you in advance.

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Aug 28, 2019, 8:46 PM EDT
Mandar ShindeRank #4,584 · 336 reputationPosted Aug 28, 2019, 9:04 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Aug 30, 2019, 2:50 AM EDT