Skip to content
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

(mapClick)="function($event)" sending 'c' as event. #1874

Closed
EmmanuelDgz opened this issue Aug 28, 2020 · 3 comments
Closed

(mapClick)="function($event)" sending 'c' as event. #1874

EmmanuelDgz opened this issue Aug 28, 2020 · 3 comments

Comments

@EmmanuelDgz
Copy link

Issue description
(mapClick) event is sending a character 'c' instead an Event.

Steps to reproduce and a minimal demo of the problem
npm i @agm/core --save

// app.module.ts
imports: [ AgmCoreModule.forRoot({ apiKey: 'abc' }) ]

// another.module.ts
imports: [ AgmCoreModule ]

// another.component.html
<agm-map (mapClick)="onClick($event)">

// another.component.ts
onClick(event) {
console.log(event);
}

Current behavior
printing 'c'

Expected/desired behavior
event: {
coords: {
lat: number,
lng: number
}
}

angular-google-maps, Angular, & any other relevant dependency versions
Node: 10.21.0
Angular: 10.0.7

@ArturV93
Copy link

I had same issue, to fix just install previous version which is 1.1.0

@ghost
Copy link

ghost commented Aug 28, 2020

Please search existing issues before reporting.
Duplicate of #1845

@ghost ghost closed this as completed Aug 28, 2020
@abdulrehmanaxa1
Copy link

I had same issue, to fix just install previous version which is 1.1.0

Its not working in angular 12, it gives errors in compilation

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants