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

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -