I have the following problem when getting the <li>
selected from a list <ul>
.
I thought it would be the same as in a select
that only the ng-model
is placed and already, but this is different.
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button">
Categorias <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu" >
<li ng-repeat="objeto in objeto" value="{{objeto.idCategoria}}" ng-model="categoriaElejida" title="{{objeto.idCategoria}}"><a href="#!tecnologia">{{objeto.nombre}}</a></li>
</ul>
</li>