Bind an externally loaded DOM element to Angular's scope
I'm using Google Maps within an Angular app. As per Google Maps's API, I pass a string to a google.maps function containing HTML, and the library displays it on the map as an InfoView. I'm adding a button to this view, and I want this view to be bound to a controller in my Angular app, however, even if I pass <div ng-controller="MyController">...</div> , when the Maps library attaches it to the DOM, Angular is not notified. How can I force the compilation of this element (over which I have very little control: just passing a string)? For AngularJS to "notice" the directive, it'd need to