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

Timeline for templateUrl?

Open atdiff opened this issue 8 years ago • 1 comments

Any idea on when the templateUrl feature will be added? I'd like to try this plugin out on a project.

atdiff avatar Jan 06 '17 00:01 atdiff

I know this is kind of necro but it might help someone in the future. Here is how I solved this problem:

            var templateURL = 'path/to/template.html';
            return $templateRequest(templateURL).then(function(template) {
                return L.popup.angular({
                    template: template,
                    controller: 'myAngularController'
                }).setContent(content).setLatLng(latLng).openOn(self.map);
            });

It's not that hard to edit the source code and add the templateUrl functionality but I just worked around it.

cosme-benito avatar Sep 11 '17 16:09 cosme-benito