I'm currently implementing Google Places Autocomplete using the AGM library.
Below is the input section in my component HTML for search functionality.
<form #addressForm="ngForm" novalidate name="AddressForm">
<div class="form-group">
<label for="Line1">{{ "AddressLine1" | localize }} *</label>
<input
id="Line1"
class="form-control"
required
#search
#line1Input="ngModel"
type="text"
placeholder = "{{'Line1Placeholder'| localize}}"
name="Line1"
[(ngModel)]="address.line1"
maxlength="128"
(change)="checkValidity()"
/>
<validation-messages [formCtrl]="line1Input"></validation-messages>
</form>
The TypeScript code for my component is as follows:
// TypeScript code here
One issue I'm facing is that although I receive places, I do not see a dropdown menu appear.
I have included the response from the source tab below:
[ [ "Kings Highway, Brooklyn, NY, USA", null, ["route", "geocode"], "EiBLaW5ncyBIaWdod2F5LCBCcm9va2x5biwgTlksIFVTQSIuKiwKFAoSCZuweFtLW8KJEchDl-1agp_wEhQKEgkJIXyUFkTCiRGGeAAEdFx2gg", "11327283b8eb9070c49203e08cad1a2c4ebe4fe1", [["Kings Highway", 0], ["Brooklyn", 15], ["NY", 25], ["USA", 29]], [[0, 1]], null, "EiBLaW5ncyBIaWdod2F5LCBCcm9va2x5biwgTlksIFVTQSIuKiwKFAoSCZuweFtLW8KJEchDl-1agp_wEhQKEgkJIXyUFkTCiRGGeAAEdFx2gg", ["Kings Highway", "Brooklyn, NY, USA", [[0, 1]]] ],
Can you please help me identify where the problem might be occurring?