use-google-places | consume Google Places API | Autocomplete library
kandi X-RAY | use-google-places Summary
kandi X-RAY | use-google-places Summary
Hook to consume Google Places API returning both autocomplete and geocoding callback method
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of use-google-places
use-google-places Key Features
use-google-places Examples and Code Snippets
Community Discussions
Trending Discussions on use-google-places
QUESTION
I am working on a project into which there is a requirement of setting a text input data on ngInit() of the parent component.
Basically I have a component, which is a Google AutoComplete dropdown, and I have the main HTML page in which I am populating this component.
How can I set a value from the main page who is calling this component?
I am following the source code which is exactly the same as This Tutorial.
Here I have an AutocompleteComponent
which is responsible to display the place in a dropdown. And this
is loaded from app.component.html
.
I want to set some value to AutoCompleteComponent
addresstext
input text box from app.component.ts
. May be from ngInit()
of app.component.ts
.
How can I achieve this?
...ANSWER
Answered 2020-May-11 at 11:37Use @Input Property of Angular which sends data from Parent Component to Child Component
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install use-google-places
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page