There is no disabled attribute for hyperlinks.
You can do this:
.disabled {
cursor: not-allowed;
}
<a ng-click="disabled()" ng-class="{disabled: addInviteesDisabled()}">Add</a>
$scope.disabled = function() {
if($scope.addInviteesDisabled) { return false;}
}
More Related Contents:
- Can one AngularJS controller call another?
- How to pass parameters using ui-sref in ui-router to controller
- Way to ng-repeat defined number of times instead of repeating over array?
- How to set an iframe src attribute from a variable in AngularJS
- How to validate inputs dynamically created using ng-repeat, ng-show (angular)
- AngularJS – Value attribute on an input text box is ignored when there is a ng-model used?
- AngularJS: No “Access-Control-Allow-Origin” header is present on the requested resource [duplicate]
- How to make ng-bind-html compile angularjs code
- Ternary operator in AngularJS templates
- Set active tab style with AngularJS
- Image loaded event in for ng-src in AngularJS
- Template does not update when using ui-router and ion-tabs
- AngularJS: Better way to watch for height change
- How do I disable the save password bubble in chrome using Javascript?
- CSS: Change parent on focus of child
- Angularjs does not load scripts within ng-view
- In AngularJS, any inline javascript code that included in HTML templates doesn’t work
- Print a div using javascript in angularJS single page application
- AngularJS – placeholder for empty result from filter
- Angular form validation ng-disabled not working
- Remove ‘All Files’ option from HTML file input
- angularjs custom filter to check for values inside a data array
- Webstorm: “Cannot Resolve Directory”
- AngularJS using $rootScope as a data store
- angularjs form reset error
- AngularJs – Best-Practices on adding an active class on click (ng-repeat)
- Clear localStorage on tab/browser close but not on refresh
- Rename Object Key in an array using javascript
- multiple ui-view html files in ui-router
- Decode HTML entity in Angular JS