I'm using the Angular Leaflet Directive and want to dynamically populate the pop up content.
To populate the content, you can assign an html string to a property called "messages". Example shown here.
I want to use a directive templateUrl to create the dynamic content, convert it to an HTML string and assign it to the messages property in the controller.
I accomplished this but my solution seems overly complex to me. Is there a better way?