SelectList paged in Angular2

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 for "propertiesSource" to popular the list, however today uses a query that returns all the data at once, leaving the screen slow.

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

    
asked by anonymous 18.07.2017 / 19:14

0 answers