angular-leaflet-directive icon indicating copy to clipboard operation
angular-leaflet-directive copied to clipboard

How to use dynamic IDs ?

Open Vallenain opened this issue 9 years ago • 0 comments

I have a random number of maps that I'd like to display and I listen to events for each of them.

So I thought I could dynamically pass an ID to the maps using id="{{}}" or ng-attr-id="{{}}" but it doesn't seem to work. The id attribute is set correctly but it's probably made after the angular-leaflet-directive actually register it.

Here is a jsFiddle with the two cases, if you open the console, you'll be able to see what id is registered. http://jsfiddle.net/9jymzymu/54/

Is this a bug, a design limitation or something I'm misunderstanding ?

Vallenain avatar Apr 13 '16 12:04 Vallenain