0
I created a list in the application to which I can select an option that will be saved in the database, I would like when loading the application that the saved option already comes as selected.
Today when loading it is displayed like this:
I would like to start the application already load the last saved option:
My code:
<button ion-button full color="white" class="text-ddi">
<ion-select [(ngModel)]="selectddi" interface="popover" align-left (ionChange)="ddiSelecionado();">
<ion-option *ngFor="let ddilista of ddilista" value="{{ddilista.codigo}}" >{{ddilista.nome}}</ion-option>
</ion-select>