I'm trying to trigger a function in a toggle switch using ng-click, but the customerActiveDeactive function isn't being executed.
<a title="Active/ Deactivate" >
<input type="checkbox" class="js-switch" ng-init="status=True" ng-model="status" ng-name="status" ng-checked="{{ customer.status|lower }}" ng-click="customerActiveDeactive({{ customer.id }})" />
</a>
$scope.customerActiveDeactive = function(id) {
console.log("method call");
}