DEV Community

Discussion on: Async material autocomplete in Angular

Collapse
 
tomwebwalker profile image
Tomasz Flis

Well, small hack could be:

    const nameControl = this.form.get('name') as AbstractControl
    this.countries$ = nameControl.valueChanges.pipe(
Enter fullscreen mode Exit fullscreen mode

But In this situation, I am telling code that I am sure about my name control because it is hardcoded.