You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
580 B

  1. <form #form="ngForm">
  2. <div>帳號:<input type="text" name="id" #id="ngModel" ngModel /></div>
  3. <div>
  4. 密碼:<input type="password" name="password" #password="ngModel" ngModel />
  5. </div>
  6. <div>
  7. <button type="reset">重設</button>
  8. <button type="submit">登入</button>
  9. </div>
  10. </form>
  11. <br />
  12. <h4>帳號狀態</h4>
  13. <pre>是否曾經修改過:{{id.dirty |json}}</pre>
  14. <pre>是否從未修改過:{{id.pristine |json}}</pre>
  15. <br />
  16. <h4>表單狀態</h4>
  17. <pre>是否曾經修改過:{{form.dirty |json}}</pre>
  18. <pre>是否從未修改過:{{form.pristine |json}}</pre>