expected 0 arguments but got 1 in tostring function 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