0
votes
2answers
28 views

Can I reference an item from ng-repeat inside an ng-click operative? [duplicate]

I have something similar to this: <li ng-repeat="page in pages"><a href="" ng-click="currentPage=page">{{ page }}</a></li> in my angular view, where I'm trying to loop ...
1
vote
2answers
1k views

Ng-click doesn't work inside ng-repeat

Ng-click doesn't work from inside ng-repeat. Outside it works. I've put a fiddle here <div ng-controller="MyCtrl"> <a ng-click="triggerTitle='This works!'">test</a> ...
0
votes
2answers
88 views

Button inside ng-repeat to update input in form

What I am trying to do is update an input field from within an ng-repeat. I have an ng-click on the button inside the ng-repeat for each user. When clicking on the button it should update the value of ...
0
votes
1answer
70 views

Ng-click built inside Ng-Repeat - not fires its function in chrome, works in FF

This code works great with FF. It fires up the updateModels funcion. But, In Chrome it doesn't do anything.... $scope.updateModels = function(model_id,option_txt,option_idx){ console.log('do ...
3
votes
1answer
392 views

AngularJS - ngSwitch and ngClick not working in ngRepeat

I want to display the elements of a list thanks to a ngSwitch but I can't figure out how to do with a ngRepeat. I've begun by doing it without a list, just to understand how ngSwitch works and to show ...
0
votes
1answer
185 views

AngularJS - ng-click does not remove previous click's modifications when clicked again

So I am trying to acomplish this example: http://jsfiddle.net/pkozlowski_opensource/WXJ3p/15/ However, for some reason, when I click on one div, and then on another, it does not remove the "active" ...
2
votes
2answers
2k views

AngularJS - multiple ng-click - event bubbling

In the following example: <li ng-repeat="item in items" ng-click="showItem(item)"> <h3>{{item.title}}</h3> <button ng-click="remove(item)">Remove</button> ...