1 // Compile any new HTML content that was loaded via jQuery.ajax().
2 // Currently this only works for tabs because they emit an
3 // arv:pane:loaded event after updating the DOM.
5 $(document).on('arv:pane:loaded', function(event, updatedElement) {
7 angular.element(updatedElement).injector().invoke(function($compile) {
8 var scope = angular.element(updatedElement).scope();
9 $compile(updatedElement)(scope);