I am trying to create a div that has a bunch of disabled fields. They get enabled on clicking anywhere in the div.
I find that clicking anywhere in the div causes ng-click to be fired, while clicking on a dropdown that is disabled does not seem to fire ng-click. Here's an example.
Javascript:
var app = angular.module('App', []);
function ctrl($scope) {
$scope.disabled = true;
$scope.enable = function () {
$scope.disabled = false;
}
}
What is going on?