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

holang_2i·2020년 5월 4일
0
post-thumbnail

<textarea kendoTextArea [(ngModel)]="insert_value.memo_to_user" placeholder="메모 남기기"></textarea>

[(ngModel)] 을 사용하려했는데 오류가 발생했다.. ngmodel 을 쓰려면 form tag 를 같이 써야된다나 머라나....

<textarea kendoTextArea [(ngModel)]="insert_value.memo_to_user" name="mm" placeholder="메모 남기기"></textarea>

그냥 name 속성 하나 넣어주면 된다

맨날 까먹고 발생하는 오류인듯 ㅎ_ㅎ..

profile
랑호

0개의 댓글