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

<form #form="ngForm" (submit)="onSubmit(form)">
<div>
帳號:<input type="text" name="id" ngModel/>
</div>
<div>
密碼:<input type="password" name="password" ngModel/>
</div>
<div>
something:<input type="text" name ="abc" ngModel/>
</div>
<div>
<button type="reset">重設</button>
<button type="submit">登入</button>
</div>
</form>
<pre>{{ form.value | json }}</pre>