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

onclick doesn't work on Circle-Marker-Element #121

Open
alexispolak opened this issue May 18, 2017 · 1 comment
Open

onclick doesn't work on Circle-Marker-Element #121

alexispolak opened this issue May 18, 2017 · 1 comment

Comments

@alexispolak
Copy link

Got this on the html:

<div *ngFor="let node of nodes"> <circle-marker-element [onclick]=getNodeInformation(node) [lat]=node.position_id[0].latitude [lon]=node.position_id[0].longitude [Options]="{color:'#576887'}"> {{node.nodeName}} </circle-marker-element> </div>

getNodeInformation(node) : void{ console.log(node.nodeName); }

I'm getting 300 logs, everytime the page reload and everytime put the mouse over the marker but not clicking.

@elasticrash
Copy link
Owner

Ill create a test for the specific case but I would generally prefer not to mix oclick kai ng-content

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

No branches or pull requests

2 participants