Ng-model with Button

0

Good morning, I make a loop to get "name" in an array and each "name" has variables with information. I need ng-model to get the value of "name" when I click the "button" so yes I can loop inside this "name".

<div class="list-group" ng-repeat="rep in list.report">
  <button type="button" class="list-group-item " ng-model="ctrl.x=" style="width:450px;height:35px" ng-click="showDetails = ! showDetails">
       {{rep.name}}
  </button></div>
    
asked by anonymous 15.04.2016 / 16:44

0 answers