I am new to AngularJS and I put an ng-click on the radio button generated by ng-repeat and the click event does not fire. If I use simple onclick, it really works.
This works and I see a warning:
<div class="span2 left-justify" ng-repeat="choice in physicalmode_choices"> <input type="radio" name="physical_layer" value="{{ choice.private }}" onclick="alert('foo')" required ng-model="$parent.networkoptions.physicalmode" /> <span ng-bind="choice.public"></span> </div>
But this is not so:
<div class="span2 left-justify" ng-repeat="choice in physicalmode_choices"> <input type="radio" name="physical_layer" value="{{ choice.private }}" ng-click="alert('foo')" required ng-model="$parent.networkoptions.physicalmode" /> <span ng-bind="choice.public"></span> </div>
Can I do this with ng-click? Or do I not understand what an "expression" is?
Thanks Mike
source share