Just diving into the world of Ionic 3 - I'm interested in using ngFor to loop through an array. So far, I've managed to display one item at a time using the slice method. Now, I want to be able to move on to the next item in the array when the user clicks the "Next" button.
<div *ngFor="let reference of content | slice:0:1;">
<div> {{reference.item}} </div>
<div> {{reference.image}} </div>
<div> {{reference.field2}} </div>
<button ion button> Next </button>
I'm unsure if ngFor is the best solution for this task or if there might be a more efficient alternative. Any suggestions are greatly appreciated!