inputtypetext 上的 ngModel
用於文字 input
的雙向繫結的 AngularJS 程式碼:
<input ng-model="ScopePropertyX" type="text" />
KnockoutJS 等價物:
<input data-bind="textInput: ScopeObservableX" type="text" />
用於文字 input
的雙向繫結的 AngularJS 程式碼:
<input ng-model="ScopePropertyX" type="text" />
KnockoutJS 等價物:
<input data-bind="textInput: ScopeObservableX" type="text" />