I have a long list of more than 50 items that I need to display. What I want to do is show only the first 10 items initially, and then when a button is clicked, reveal the next 10 items, and keep repeating this process until all items are shown.
<ul class="results-main-content">
<li class="right-results-section">
<ul class="_result-list">
<li class="result" *ngFor="let searchResult of searchResults">
{{searchResult.name}}
</li>
</ul>
</li>
<li class="showmore">
<button class="show-more">
<img class="more" src="_arrow-down.svg" alt="" />
</button>
</li>
</ul>
Would it be possible to implement this functionality in angular2?
If anyone has any insights or solutions to offer, please share with me and the wider SO community.
Thank you