Answer the question
In order to leave comments, you need to log in
How to detect a click on an element and read the name. json?
I make a request for a file in json format and display data on the page:
(a piece of markup)
<tr ng-repeat="test in myData">
<td>{{test.Name}}</td>
<td>{{test.City}}</td>
<td>{{test.Country}}</td>
Answer the question
In order to leave comments, you need to log in
I don't know for sure if the answer is in the topic - but try this:
<tr ng-repeat="test in myData">
<td><div ng-click="yourFunc()">{{test.Name}}</div></td>
<td>{{test.City}}</td>
<td>{{test.Country}}</td>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question