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 HawaldarPosted Aug 29, 2019, 12:46 AM
Rajanikant HawaldarPosted Aug 30, 2019, 6:50 AM
Mandar ShindePosted Aug 29, 2019, 1:04 AM