此代码用于填充自动建议字段
<div *ngFor="let field of fields; let i=index">
<label class="pt-3 font-600">{{field.label}} {{field.id}}</label>
<tag-input
[identifyBy]="'id'"
[inputClass]="riProSuggestionField"
[displayBy]="'name'"
(onFocus)="onFocusInput($event)"
[placeholder]="field.placeholder"
[(ngModel)]="field.data"
[inputId]="field.id"
[onlyFromAutocomplete]="true"
name="{{field.label}}"
>
<tag-input-dropdown
[autocompleteObservable]="getSuggestions"
</tag-input-dropdown>
</tag-input>
</div>
.ts
存档_
onFocusInput(event) {
}
在这个函数中它应该给出 html 对象<tag-input>
,有没有人有技巧来获取这个 HTML 对象onFocusInput
?