Angular2 If ngModel is used within a form tag, either the name attribute must be set or the form

前端 未结 14 2307
借酒劲吻你
借酒劲吻你 2020-12-04 07:33

I am getting this error from Angular 2

core.umd.js:5995 EXCEPTION: Uncaught (in promise): Error: Error in app/model_exposure_currencies/model_exposure_cu

14条回答
  •  孤城傲影
    2020-12-04 08:14

    If ngForm is used, all the input fields which has [(ngModel)]="" must have an attribute name with a value.

    
    

提交回复
热议问题