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.

16 lines
407 B

  1. <form #form="ngForm" (submit)="onSubmit(form)">
  2. <div>
  3. 帳號:<input type="text" name="id" ngModel/>
  4. </div>
  5. <div>
  6. 密碼:<input type="password" name="password" ngModel/>
  7. </div>
  8. <div>
  9. something:<input type="text" name ="abc" ngModel/>
  10. </div>
  11. <div>
  12. <button type="reset">重設</button>
  13. <button type="submit">登入</button>
  14. </div>
  15. </form>
  16. <pre>{{ form.value | json }}</pre>