Hello everyone I have this autocomplete of material and I want to get that when selecting an item my label <p>
is displayed:
<div class="resumen" ng-cloak>
<md-autocomplete
md-selected-item="selectedItem"
md-selected-text="selectedItem"
md-search-text="searchText"
md-items="item in querySearch(searchText)"
md-item-text="item.rut"
placeholder="Ingrese rut del paciente">
<md-not-found>Rut no encontrado.</md-not-found>
<md-icon md-svg-icon="images/buscame.svg"></md-icon>
<span md-highlight-text="searchText">{{item.rut + ' Numero: '+item.numero}}</span>
</md-autocomplete>
<p style="padding-top:20px; font-size:18px;" ng-show=" {{!selectedItem.rut === undefined}}">
{{'El rut seleciado es: ' +selectedItem.rut+' y su numero de atención: ' + selectedItem.numero}}
</p>
</div>
How can I correctly implement in this situation a ng-hide
, ng-show
until I think of a ng-change
but I earn it ... regards ...