更新时间:2023-02-12 11:10:52
内部指令:
您可以使用@Output
发送事件并以
You can use @Output
to send an event and capture it in the form
@Output typeaheadResult = new EventEmitter();
...
// Whenever user selects a result dispatch the event
this.typeaheadResult.emit(changedInput);
您可以在HTML内捕获
Inside your HTML you can capture it
<input formControlName="name"
myTypeahead="'http://someRemoteUrl'"
(typeaheadResult)="doSomething()"
/>