Angular how to get the value of item which is clicked from a list of ngrepeat
Answers
Answered by
0
ul>
<li ng-repeat="Answers in Multiples">
<button ng-click="addAnswer()">{{Answers}}</button>
</li>
</ul>
Now i want when i click on one of the buttons that it shows the value of that object.
$scope.addAnswer(){
console.log('Item i clicked on');
}
Similar questions
Math,
6 months ago
Math,
6 months ago
India Languages,
6 months ago
Math,
11 months ago
Physics,
11 months ago
History,
1 year ago
Social Sciences,
1 year ago