0
Personal I have a select where I select a company
<div class="form-group col-md-12">
<select class="form-control" name="Empresa" formControlName="Empresa">
<option selected value="null">Selecione a Empresa</option>
<option *ngFor="let empresa of Empresa; let i= index;">{{empresa.nomeFantasia}}</option>
</select>
</div>
const empresa = this.form.get('Empresa').value;
if (empresa === null) {
this.servicesMessages.notification.exibirMensagemDeErro('A Empresa não foi informada');
return;
}
I thought I’d do something more or less at this level
if (empresa.uf) {
}
but it just takes the name of the company that was set, I’ve tried to create a Model, but I can’t pass the index, someone could help me?