swsnu / swppfall2018

22 stars 21 forks source link

Hw2 질문 #58

Open mumumute opened 5 years ago

mumumute commented 5 years ago

Features 항목에 you must use the value of 'id' column as the "id" of the tag like <input type="password" name="password" id="pw-input" ... />

라고 적혀있는데 그러면 ngmodel을 사용하는게 아닌 건가요?

ahnjaeshin commented 5 years ago

왜 해당 requirement가 two-way binding과 관련 있는지 잘 모르겠습니다.

mumumute commented 5 years ago

html 파일에서 입력칸을 만드는 부분과 겹치지 않나요?

ahnjaeshin commented 5 years ago

제가 이해 못했는데 @sanha 검토 부탁드립니다.

sanha commented 5 years ago

"id" 항목만 제시된대로 사용하시면 됩니다. 물론 ngmodel과 함께 사용하실 수 있습니다.

mumumute commented 5 years ago

<input type="password" name="password" id="pw_input" [(ngModel)] = "password" placeholder="password">

이런식으로 하면 되는 건가요?

sanha commented 5 years ago

네 맞습니다 :)

mumumute commented 5 years ago

해결되었습니다. 감사합니다.

sanha commented 5 years ago

질문 이슈는 다른 수강생들을 위해 닫지 말아주세요 :)