expected 2 to 6 arguments, got 0 code example
Example: Expected 1 arguments, but got 0.
(click)="myFunc(i)" //Index needs to be passed when button is inside *ngFor
(click)="myFunc(i)" //Index needs to be passed when button is inside *ngFor