-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get the API response directly as soon as it runs successfully #41
Comments
@output() onSuccess: EventEmitter = new EventEmitter(); private directionDraw() { I think this update will work |
Hi! @er-shrey . Please install the latest version(0.7.2). HTML <agm-direction
...
(onResponse)="onResponse($event)"
>
</agm-direction> TypeScript public onResponse(event: any) {
console.log('onResponse', event);
} |
Thanks buddy |
Sometimes the API will result as:
geocoded_waypoints:[{}, {}]
0:{}
1:{}
routes:[]
status:"ZERO_RESULTS"
i.e. directions not found, at this time (onChange) event will not get fired. Is there any workaround.
(let the user gave wrong destination location, say in the mid of ocean)
The text was updated successfully, but these errors were encountered: