You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This causes problems when the supplied ng-change is actually a function with supplied parameters. This problem came up when using the switch inside an ng-repeat section. The function supplied to ng-change needed to have a parameter with the specific item.
<div ng-repeat="item in items">
<switch name="isActive" ng-model="item.isActive" class="green" ng-change="activate(item);"></switch>
</div>
Awesome control. Thanks for putting it together.
The text was updated successfully, but these errors were encountered:
Remove the () that are added on ng-change in line 12. Change
to
This causes problems when the supplied ng-change is actually a function with supplied parameters. This problem came up when using the switch inside an ng-repeat section. The function supplied to ng-change needed to have a parameter with the specific item.
Awesome control. Thanks for putting it together.
The text was updated successfully, but these errors were encountered: