import { Component } from '@angular/core'; import { DiseaseTypeaheadComponent } from './disease-typeahead'; @Component({ imports: [DiseaseTypeaheadComponent], selector: 'app-root', template: `

Using JavaScript, replicate the functionality found here.
The solution does not have to be perfect. Most important is to see how you approach such tasks.

`, styles: ` ::highlight(search-match) { background: #ffc600; color: black; } .info { text-align: center; line-height: 2; color: white; } a { color: white; background: rgba(0, 0, 0, 0.1); text-decoration: none; } `, }) export class AppComponent {}