<input id="searchCust" type="text" ng-model="meval" class="form-control" />Â Â Â Â Â Â <div class="table-responsive">Â Â Â Â Â Â Â Â <table class="table">Â Â Â Â Â Â Â Â Â Â <thead>Â Â Â Â Â Â Â Â Â Â Â Â <tr>Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th>Contact Name</th>Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th>Company Name</th>Â Â Â Â Â Â Â Â Â Â Â Â Â Â <th>ID</th>
            </tr>          </thead>          {{custo}}          <tbody>            <tr ng-repeat="cust in customers">              <td>{{cust.ContactName}}</td>              <td>{{cust.CompanyName}}</td>              <td>{{cust.CustomerID}}</td>              <td><button ng-click="getcustid()"  class="select-cust-to-sell-to" id="{{cust.CustomerID}}">ddd</button></td>            </tr>          </tbody>        </table>      </div>--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/VcU7_nNA_Bc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
Hi Cristian,
So your goal is to set the meval to the selected customerID? you don’t need a function for that.
try something allong those lines:
<td><button ng-click="meval = cust.CustomerID" class="select-cust-to-sell-to" id="{{cust.CustomerID}}">ddd</button></td>
Regards
Sander