javascript - What elements can ng-disabled be applied to? -


i thought apply ng-disabled <a> element. it's looking can't. works on <button> element. know elements can apply ng-disabled to?

you not disable anchor tag. ng-disabled or disabled attribute work on button/inputs element, if want disable anchor tag should have call ng-click function on & on basis of either redirect or don't anything.

markup

<a href="" ng-click="redirect(isvalid, url)"> anchor button </a> 

code

$scope.redirect = function(isvalid, url){     if(isvalid)       $window.open(url, "_blank") } 

Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -