angular-material-extensions / google-maps-autocomplete

Autocomplete input component and directive for google-maps built with angular and material design |
https://angular-material-extensions.github.io/google-maps-autocomplete
MIT License
169 stars 60 forks source link

How set form value of address from database #320

Closed dndoanh closed 3 years ago

dndoanh commented 3 years ago

Maybe new feature When init form and loaded data from database, I wanna set form value of matGoogleMapsAutocomplete input control Please help me to how to accomplish this Thanks

AnthonyNahas commented 3 years ago

Please use reactive forms

 this.addressFormGroup = new FormGroup({
      address: new FormControl(),
    });
  <mat-search-google-maps-autocomplete formControlName="address">
  </mat-search-google-maps-autocomplete>