It would make sense to allow a set of markers to use the same angular templates (marker.message property) and the same scope factory (marker.getMessageScope() function).
By definition, a template should be the generic html partial that gets compiled and made specific by Angular and its scope bindings. Each marker should not have its own copy of the angular template but shared at some higher level.
From @joeljeske on August 24, 2015 17:49
It would make sense to allow a set of markers to use the same angular templates (
marker.message
property) and the same scope factory (marker.getMessageScope()
function).By definition, a template should be the generic html partial that gets compiled and made specific by Angular and its scope bindings. Each marker should not have its own copy of the angular template but shared at some higher level.
Possible API
controller.js
index.html
popup.html
Additional Notes
$compile
d and reused for performanceCopied from original issue: tombatossals/angular-leaflet-directive#896