Posts by Leonardo Fonseca Ferreira • 36 points
2 posts
-
1
votes3
answers347
viewsA: Retrieve the input from a class array with javascript
Have you tried that? var groupOptions = document.getElementsByClassName("option-title"); for(var i = 0; i < groupOptions.length; i++){ groupOptions[i].addEventListener("click", message); }…
-
1
votes3
answers926
viewsA: Using find at angular
you can use ng-click inside an ng-repeat yes, keep the Function outside the object you pass pro ng-repeat and pass the necessary data to it by $scope.lista = [{item1},{item2},{item3}]; $scope.acao =…