Check out example codes for "Expected 1 arguments, but got 0.". It will help you in understanding the concepts better.

Code Example 1

(click)="myFunc(i)" //Index needs to be passed when button is inside *ngFor

Learn ReactJs, React Native from akashmittal.com