Hello,
I have to retrieve the html tag “input” of a ion-input for use the autocomplete of places provides by google.
I try to use the query selector on my ion-input elementRef but my result is always “null”, maybe i don’t have the right query selector tag ?
this is my code : for my .ts file
@ViewChild('inputStart', { read: ElementRef }) inputStart: ElementRef;
inputStartElem: HTMLInputElement = null;
this.inputStartElem = this.inputStart.nativeElement.querySelector('input');
and my code for .html file :
<ion-input id="inputStart" #inputStart ></ion-input>
So this.inputStartElem is always null.
If someone can help me on this
Thanks a lot.