I have Jquery code which generates a widget for use in a site. We have several products, one of which is angularjs based.
Is it possible to run the Jquery widget on the page and then interpolate the output with angularjs? What I would like is for my template (loaded with jquery append) to contain some angularjs directives or output and to then be able to call $interpolate on the page once jquery has done its bit.
So for example if a partial was to contain this
<div ng-controller="blah">
<div id='jquery-target'>
</div>
</div>
<script>
$('jquery-target).append(blah);
</script>
Is it possible to do this in a way that doesn't involve a complete re-write of the jquery widget? Preferably if I were to trigger an event when the jquery was finished loading and be able to have angular run another pass over the page looking for directives and {{}}