Paged selectlist in Angular2

Asked

Viewed 50 times

1

I have the following HTML code for the list:

<select data-placeholder="Origem" id="origemNew" (click)="SelecionaOrigem($event,oportunidadeNew.operacao,true)" class="chosen-select col-md-12">
    <option value=""></option>
    <option *ngFor="let item of estabelecimentosOrigem" value="{{item.id}}" >{{ item.nome }}</option>
</select>

Where the data is loaded when entering the screen to "estabelecimentosOrigem" to popular the list, but today uses a query that returns all the data at once, leaving the screen slow.

What I need is that using a paged method (already created), at the end of the list the component calls the method in the file . ts again to popular more records and so on to make the loading more agile.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.