Skip to content
Advertisement

Tag: mat-autocomplete

How to update mat-autocomplete options from another component?

I have two components called Employee and Form in my application. There are 2 mat-autocomplete: State and City lists in EmployeeComponent. I fill and pass these mat-autocomplete controls to the FormComponent using “formData” parameter: Employee Component: html ts Form Component: html At this point, when I select a state I want the cities list is cleared and the filled by

Advertisement