AngularJS HTML DOM
AngularJS HTML DOM
AngularJS는 응용 프로그램 데이터를 HTML DOM 요소의 속성에 바인딩하기위한 지시문을 가지고 있습니다.
ng-disabled 지시어
NG 장애인 지시어는 HTML 요소의 disabled 속성에 AngularJS와 응용 프로그램 데이터를 결합한다.
예
<div ng-app="" ng-init="mySwitch=true">
<p>
<button ng-disabled="mySwitch">Click Me!</button>
</p>
<p>
<input type="checkbox" ng-model="mySwitch">Button
</p>
<p>
{{ mySwitch }}
</p>
</div>
신청 설명 :
NG 장애인 지시자는 애플리케이션 데이터 바인딩 mySwitch 는 HTML 버튼의에 사용할 속성을.
NG 모델 지시어의 값으로 HTML 체크 박스 요소의 값 결합 mySwitch을 .
mySwitch 의 값이 true로 평가 되면 버튼이 비활성화됩니다.
<p>
<button disabled>Click Me!</button>
</p>
mySwitch 의 값이 false로 평가 되면 버튼이 비활성화되지 않습니다.
<p>
<button>Click Me!</button>
</p>
예제소스
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<body>
<div ng-app="" ng-init="mySwitch=true">
<p>
<button ng-disabled="mySwitch">Click Me!</button>
</p>
<p>
<input type="checkbox" ng-model="mySwitch"/>Button
</p>
<p>
{{ mySwitch }}
</p>
</div>
</body>
</html>
AngularJS는 응용 프로그램 데이터를 HTML DOM 요소의 속성에 바인딩하기위한 지시문을 가지고 있습니다.
ng-disabled 지시어
NG 장애인 지시어는 HTML 요소의 disabled 속성에 AngularJS와 응용 프로그램 데이터를 결합한다.
예
<div ng-app="" ng-init="mySwitch=true">
<p>
<button ng-disabled="mySwitch">Click Me!</button>
</p>
<p>
<input type="checkbox" ng-model="mySwitch">Button
</p>
<p>
{{ mySwitch }}
</p>
</div>
신청 설명 :
NG 장애인 지시자는 애플리케이션 데이터 바인딩 mySwitch 는 HTML 버튼의에 사용할 속성을.
NG 모델 지시어의 값으로 HTML 체크 박스 요소의 값 결합 mySwitch을 .
mySwitch 의 값이 true로 평가 되면 버튼이 비활성화됩니다.
<p>
<button disabled>Click Me!</button>
</p>
mySwitch 의 값이 false로 평가 되면 버튼이 비활성화되지 않습니다.
<p>
<button>Click Me!</button>
</p>
예제소스
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<body>
<div ng-app="" ng-init="mySwitch=true">
<p>
<button ng-disabled="mySwitch">Click Me!</button>
</p>
<p>
<input type="checkbox" ng-model="mySwitch"/>Button
</p>
<p>
{{ mySwitch }}
</p>
</div>
</body>
</html>
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 118 | jQuery Mobile | 8년 전 | 1350 | ||
| 117 | jQuery Mobile | 8년 전 | 1602 | ||
| 116 | jQuery Mobile | 8년 전 | 1831 | ||
| 115 | jQuery Mobile | 8년 전 | 1785 | ||
| 114 | jQuery Mobile | 8년 전 | 1974 | ||
| 113 | jQuery Mobile | 8년 전 | 1883 | ||
| 112 | jQuery Mobile | 8년 전 | 2490 | ||
| 111 | jQuery Mobile | 8년 전 | 1795 | ||
| 110 | jQuery Mobile | 8년 전 | 1586 | ||
| 109 | jQuery Mobile | 8년 전 | 1750 | ||
| 108 | jQuery Mobile | 8년 전 | 1974 | ||
| 107 | jQuery Mobile | 8년 전 | 1775 | ||
| 106 | jQuery Mobile | 8년 전 | 1456 | ||
| 105 | jQuery Mobile | 8년 전 | 1758 | ||
| 104 | jQuery Mobile | 8년 전 | 2436 | ||
| 103 | jQuery Mobile | 8년 전 | 1566 | ||
| 102 | jQuery Mobile | 8년 전 | 1510 | ||
| 101 | jQuery Mobile | 8년 전 | 1701 | ||
| 100 | jQuery Mobile | 8년 전 | 1926 | ||
| 99 | jQuery Mobile | 8년 전 | 1384 | ||
| 98 | jQuery Mobile | 8년 전 | 1409 | ||
| 97 | jQuery Mobile | 8년 전 | 1664 | ||
| 96 | jQuery Mobile | 8년 전 | 1316 | ||
| 95 | jQuery Mobile | 8년 전 | 1128 | ||
| 94 | jQuery Mobile | 8년 전 | 1531 | ||
| 93 | jQuery Mobile | 8년 전 | 1149 | ||
| 92 | jQuery Mobile | 8년 전 | 1573 | ||
| 91 | jQuery Mobile | 8년 전 | 1525 | ||
| 90 | jQuery Mobile | 8년 전 | 1690 | ||
| 89 | jQuery Mobile | 8년 전 | 1670 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기