<h3>Form 使用範例</h3> 雙向資料綁定,使用到:ng-model, ng-submit <!-- more --> <a class="jsbin-embed" href="http://jsbin.com/cuvup/2/embed?html,output">JS Bin</a><script src="http://static.jsbin.com/js/embed.js"></script> <h3>加入驗證資訊</h3> 在 Form 中使用 novalidate 暫時關掉HTML驗證,再將需要驗證的部分加上 required,驗證結果為 form名稱.valid (e.g.reviewForm.valid) <a class="jsbin-embed" href="http://jsbin.com/fagik/3/embed?html,output&height=600px">JS Bin</a><script src="http://static.jsbin.com/js/embed.js"></script>