我得到了一個用於編輯產品的表單,該值顯示在檢查器中,但不在表單中。當我從代碼中刪除ng模型時,它們會顯示。當使用ng-model angularjs時不顯示錶格值
在該行中的值示出了在檢查元件,但不是在形式:
<input type="text" class="form-control" placeholder="Product naam"
value="{{product.title}}" ng-model="formData.title"/>
在該行中的值示出了在檢查元件,並且在形式:
<input type="text" class="form-control" placeholder="Product naam"
value="{{product.title}}"/>
但是我需要ng-model來傳遞數據。
有什麼建議嗎?
感謝現在的工作 –
@NickAudenaerde:如果你發現你的解決方案,您可以關閉這個問題。 – dreamweiver
@NickAudenaerde如果它很有用,請將其標記爲答案。這不是要點,而是要向其他人展示這是問題的解決方案。 –