angular 之手動觸發組件事件

業務場景:函數  點擊按鈕,調用方法,而後方法中須要觸發其餘元素的事件this 好比,點擊新增 按鈕 而後某個文本框須要得到輸入焦點spa   一、 元素上定義 模板變量 orm       <ion-input #myport type = "text"  [( ngModel )]= "port" ></ion-input> 2\組件中使用注入元素。 事件   @ViewChild('mylo
相關文章
相關標籤/搜索