Take value from an ionic angle

0
<div class="list">
<li class="item" ng-click="city()" ng-repeat="seg in segmento">{{seg}}</li>
</div>

I have this code in my ionic framework I would like to get the value of the li I already tried with name, ng-model does anyone have any suggestions?

    
asked by anonymous 20.06.2016 / 21:14

1 answer

1
<div class="list">
<li class="item" ng-click="city(seg)" ng-repeat="seg in segmento">{{seg}}</li>
</div>

The seg is the selected element, you can pass by parameter.

    
05.08.2016 / 21:42