문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
| angular:property-binding [2019/01/14 08:10] – 만듦 taekgu | angular:property-binding [2025/04/15 10:05] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ===== Property Binding ===== | ===== Property Binding ===== | ||
| + | {{: | ||
| Attributes and Properties are not the same. | Attributes and Properties are not the same. | ||
| Attributes - HTML | Attributes - HTML | ||
| 줄 7: | 줄 8: | ||
| <code html> | <code html> | ||
| <input type=" | <input type=" | ||
| + | </ | ||
| + | <code bash> | ||
| + | $0.getAttributes(' | ||
| + | $0.value; | ||
| + | </ | ||
| + | - 아래코드는 원하지 않는 결과를 보여준다. 편집을 할 수 없다. | ||
| + | <code html> | ||
| + | <input disable=" | ||
| + | </ | ||
| + | - 이렇게 Property로 지정하면 편집할 수 있다. | ||
| + | <code html> | ||
| + | <input [disable]=" | ||
| + | </ | ||
| + | 또는 | ||
| + | <code html> | ||
| + | <input bind-disable=" | ||
| </ | </ | ||