데이터 바인딩의 두 가지 방법의 차이점에 대해 혼란 스럽습니다. <input type="text" value="{{stringInterpolation}}">
Angular2 : 구성 요소 내부의 속성에서 속성 바인딩
나는 또 다른 방법으로 재산을 결합 할 수 읽었습니다 : I는 입력의 값 속성에 대한 속성이 있음을 결합 내 HTML에서 stringInterpolation = This is string interpolation;
: 내 구성 요소에서
나는 속성이 : <input type="text" [value]="stringInterpolation">
텍스트 상자 내에서 동일한 값을 출력합니다. 여기
<input _ngcontent-qdj-2="" type="text" ng-reflect-value="This is string interpolation">
및
<input _ngcontent-qdj-2="" type="text" ng-reflect-value="This is string interpolation">
내 질문은 : value="{{stringInterpolation}}
은 (는) [value]="stringInterpolation"
과 어떻게 다른가요?