ngx-leaflet-starter icon indicating copy to clipboard operation
ngx-leaflet-starter copied to clipboard

add component to bindPopup or L.popup

Open vaggeliskls opened this issue 6 years ago • 1 comments

Is there any way to add a custom component to bindpopup or L.popup ? Thanks you

vaggeliskls avatar Mar 29 '18 17:03 vaggeliskls

I have not tried yet but it should be possible. The general idea is to compile the html template and then pass the html element using the setContent() method.

This may be helpful: https://stackoverflow.com/questions/48028676/compile-dynamic-html-in-angular-4-5-something-similar-to-compile-in-angular-js

haoliangyu avatar Mar 29 '18 18:03 haoliangyu