Math, asked by Vikshuth4667, 11 months ago

Angular how to get the value of item which is clicked from a list of ngrepeat

Answers

Answered by ruchi5716
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