I am trying to use a leaflet with Angular 2 TS for my Ionic 2 application. I want to release pinClicked -event when I click the leaflet. How to do it? In Angular1 $ scope. $ Apply was the solution ...
private refreshMarkers() {
L.marker([40.731253, -73.996139])
.addTo(this.map)
.on('click', function() { alert('JA'); } );
}
private pinWasClicked() {
this.pinClicked.emit('');
}
source
share