Can't bind to 'ngModel' since it isn't a known property of 'input'.
原因:庫(kù)未引用完整
解決:https://blog.csdn.net/u011321546/article/details/78376679
代碼
<input [(ngModel)]="title" #myInput type="text">
input 組件雙向綁定
[(ngModel)]
符號(hào) [ ] 代表數(shù)據(jù)從模型流向視圖(html)
符號(hào) ( ) 代表數(shù)據(jù)從視圖流向模型
參考:https://blog.csdn.net/maoguiyou/article/details/53745838
** "title" **即 數(shù)據(jù)模型