- Will it always be behavior?
Yes, the blur event will always be fired first
- Can I change this behavior without any effort?
, . . $timeout ng-blur , ng-click.
function ngClick () {
$scope.clicked = true;
}
function ngBlur () {
$scope.clicked = false;
$timeout(function () {
if ($scope.clicked) {
return;
}
})
}
:
http://jsfiddle.net/zhfew91j/2/