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년 전 | 1349 | ||
| 117 | jQuery Mobile | 8년 전 | 1598 | ||
| 116 | jQuery Mobile | 8년 전 | 1828 | ||
| 115 | jQuery Mobile | 8년 전 | 1783 | ||
| 114 | jQuery Mobile | 8년 전 | 1972 | ||
| 113 | jQuery Mobile | 8년 전 | 1882 | ||
| 112 | jQuery Mobile | 8년 전 | 2490 | ||
| 111 | jQuery Mobile | 8년 전 | 1795 | ||
| 110 | jQuery Mobile | 8년 전 | 1586 | ||
| 109 | jQuery Mobile | 8년 전 | 1749 | ||
| 108 | jQuery Mobile | 8년 전 | 1973 | ||
| 107 | jQuery Mobile | 8년 전 | 1773 | ||
| 106 | jQuery Mobile | 8년 전 | 1453 | ||
| 105 | jQuery Mobile | 8년 전 | 1754 | ||
| 104 | jQuery Mobile | 8년 전 | 2432 | ||
| 103 | jQuery Mobile | 8년 전 | 1564 | ||
| 102 | jQuery Mobile | 8년 전 | 1507 | ||
| 101 | jQuery Mobile | 8년 전 | 1701 | ||
| 100 | jQuery Mobile | 8년 전 | 1922 | ||
| 99 | jQuery Mobile | 8년 전 | 1383 | ||
| 98 | jQuery Mobile | 8년 전 | 1406 | ||
| 97 | jQuery Mobile | 8년 전 | 1661 | ||
| 96 | jQuery Mobile | 8년 전 | 1315 | ||
| 95 | jQuery Mobile | 8년 전 | 1128 | ||
| 94 | jQuery Mobile | 8년 전 | 1530 | ||
| 93 | jQuery Mobile | 8년 전 | 1149 | ||
| 92 | jQuery Mobile | 8년 전 | 1572 | ||
| 91 | jQuery Mobile | 8년 전 | 1522 | ||
| 90 | jQuery Mobile | 8년 전 | 1687 | ||
| 89 | jQuery Mobile | 8년 전 | 1668 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기