Is it possible to pass the i+1 data when clicking on the i-th anchor in Angular 2 using ngFor?
Could someone please assist me with this?
<ul>
<li *ngFor="let menu of _menus; let k=index" >
<a (click)="GoToSectionPage()">{{menu.Title}}</a>
</li>
</ul>
I have used the above code for binding an array of data. Can I pass the k+1th data in the GoToSectionPage() method?
Thank you!