Angularjs Examples

AJS Examples

AngularJS ng-Disabled Directive

The AngularJS ng-disabled directive is used to attach disabled attributes to the form element.


<div ng-disabled="true"></div>

AngularJS ng-Disabled Directive Example

<title>My first AngularJS ng-disabled Directive code</title>
<Script SRC="">
//Defining Controller Using Standard Javascrip Object Constructor
function CustomerController($scope) {
	$scope.isDisabled = true;
	$scope.siteName = "";
<div ng-app="">
<div ng-controller="CustomerController"> 

<input type="text" ng-disabled="isDisabled" ng-model="siteName">   

See live Example