Angular Form 沒有正常運作?

 !!!重要

在Angular中的Form 不需要使用Form標籤

否則會無法正常呼叫event


範例:

<div class="form-header">
<input #myInput class="au-input au-input-xl"
type="text"
placeholder="keyword..."
(keyup.enter)="doSearch(myInput.value)"/>
<button class="au-btn-submit" type="submit" (click)="doSearch(myInput.value)">
Search
</button>
</div>

留言

這個網誌中的熱門文章

在windows 10上安裝mmdetection