I want to go from page 1 to page 4, in Angular 4, with a prev and next button. Each page, from 1 to 4, is a individual component.
My buttons component is on the bottom on each page.
<div class="d-flex flex-row">
<div class="trade-75"><button type="button" class="btn trade-back">
</button></div>
<div class="trade-10"><button type="button" class="btn trade-next">
</button></div>
</div>
I was thinking to put in an array all components and to loop thought this array, but I don't know how to do this in Angular 4 :). Is there anyone who can help me?