I am looking to implement a customized autocomplete feature on an input element in Angular 8.
Currently, I have the following setup to capture the tab key press:
<input (keydown.Tab)="onKey($event)" />
Then, in my .ts file, I have the following method defined:
onKey(event) {
// Implement logic to autocomplete based on input
}
words = {
myword {
result: 'myword param1 param2 param3'
}
}
Essentially, when a user types 'myword' into the input and presses Tab, I want the system to automatically complete it. How can I achieve this functionality?