0
I have a component select
which brings the countries from the database
<div class="form-group col-md-4">
<label>País *:</label>
<select required="required" id="selecionaPais" ng-model="pessoasEnderecos.pais.idPais"
class="form-control">
<option value="" ></option>
<option value="{{paises.idPais}}" ng-repeat="pais in paises">{{pais.nome}}</option>
</select>
</div>
I want to make sure that, when selecting the country Brazil, the input
town stay hidden
<div id="idCidade">
<div class="form-group col-md-4">
<label>Cidade:</label>
<input maxlength="20" type="text" class="form-control" ng-model="estrangeiro.nome" />
</div>
</div>
By which property you identify which country is Brazil?
– Jéf Bueno
Have you solved the problem, young man? You need something improved in one of the answers?
– Jéf Bueno
@LINQ I just could not implement by the answers examples were with fixed data..
– Eduardo Krakhecke
But what’s the difference? The example of my answer uses a array, with the same structural basis as the array you use in your application.
– Jéf Bueno