AngularJS
Polymorphism
AngularJS
AngularJS Home
Introduction
Introduction
Control Statements
Environment Setup
Object Class
First Application
Inheritance
Angular Expressions
One-Time Binding Expression
Polymorphism
Angular Directives
ngApp directive
ngController directive
ngBind directive
ngBindHtml directive
ngRepeat directive
ngModel directive
ngClick directive
ngDisable directive
ngClass directive
ngOptions directive
ngStyle directive
ngShow directive
ngHide directive
ngHide directive
ngIf directive
ngInclude directive
Abstraction
Angular Controllers
Nested Controllers
Encapsulation
Angular Filters
Filters in Controllers and Services
Creating filters
Tables
Angular Tables
Advanced
Manipulating DOM Elements
File I/O
C Internationalization and Localization
Internationalizing Application
Concerns
AngularJS
AngularJS Home
Introduction
Introduction
Control Statements
Environment Setup
Object Class
First Application
Inheritance
Angular Expressions
One-Time Binding Expression
Polymorphism
Angular Directives
ngApp directive
ngController directive
ngBind directive
ngBindHtml directive
ngRepeat directive
ngModel directive
ngClick directive
ngDisable directive
ngClass directive
ngOptions directive
ngStyle directive
ngShow directive
ngHide directive
ngHide directive
ngIf directive
ngInclude directive
Abstraction
Angular Controllers
Nested Controllers
Encapsulation
Angular Filters
Filters in Controllers and Services
Creating filters
Tables
Angular Tables
Advanced
Manipulating DOM Elements
File I/O
C Internationalization and Localization
Internationalizing Application
Concerns
ngDisable directive
The
ngDisable
directive can disable elements based on the Boolean value of an expression. This directive is useful with validation techniques.
In this next example, we will disable the button when the variable is true:
<button ng-click="park(car)" ng-disabled="!car.plate">Park</button>
Related Tutorial
1
Angular Directives
2
ngApp directive
3
ngController directive
4
ngBind directive
5
ngBindHtml directive
6
ngRepeat directive
7
ngModel directive
8
ngClick directive and other event directives
9
ngDisable directive
10
ngClass directive
11
ngOptions directive
12
ngStyle directive
13
ngShow directive
14
ngHide directive
15
ngHide directive
16
ngIf directive
17
ngInclude directive
Follow Us
Try it
http://codeamaze.com
Share this tutorial
Contents
+