Sunday 15 April 2012

angularjs - Adding an optional href to anchor tab using Angular -



angularjs - Adding an optional href to anchor tab using Angular -

i have hyperlink on template conditionally available. in case when it's not available, want still display inactive.

this first attempt:

<a ng-class="{denied: !data.canmanageleadfields }"> lead fields </a>

ng-class works appropriately. denied class changes pointer default on link. hoping same principle apply href attribute, have eliminate attribute itself, not set blank string. can't seem find out of box. ideas?

angularjs

No comments:

Post a Comment