0
I basically have a mat-option
, and would like to select an option from it directly by parameters, with a service, for example.
This is the option:
<mat-select [formControl]="form.get('emptyTitle')" placeholder="Nenhum Índice Selecionado">
<mat-option value="">Nenhum Índice Selecionado</mat-option>
<div *ngFor="let indice of indices">
<mat-option (click)="selectionClick()" [value]="indice._id">{{indice._source.titulo}}</mat-option>
</div>
</mat-select>
When I load this component it is without any option checked, but there is a feature that requires an option of this mat-option
is selected, via parameter.