Angular页面发生更新时,更新如何从view层传递到model层
生活随笔
收集整理的這篇文章主要介紹了
Angular页面发生更新时,更新如何从view层传递到model层
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
當我在Angular UI輸入用戶email時:
觸發forms.js的_handleInput操作:
updateControl:
FormControlName里,觀察到新的value:
forms.js: updateControl:
function updateControl(control, dir) {if (control._pendingDirty)control.markAsDirty();control.setValue(control._pendingValue, { emitModelToViewChange: false });dir.viewToModelUpdate(control._pendingValue);control._pendingChange = false; }最后執行viewToModelUpdate:
更多Jerry的原創文章,盡在:“汪子熙”:
總結
以上是生活随笔為你收集整理的Angular页面发生更新时,更新如何从view层传递到model层的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PHP中常用的循环方法有哪些
- 下一篇: What happens when cl