I have an issue where HTML obtained from a PartialView Ajax call isn't getting processed by AngularJS. The problem I have however, is that some JS is setting the element.html property after page load occurred. I can't really touch this JS as it's filled with more business rules than I know. Here is what appears to be going on.
MainPage - Has access to Angular scope
<dd class="log"></dd>
somefile.js - Not in Angular scope (but I can get the MainPage scope via JS if needed)
getDataTemplate('.log', 'testid');
function getDataTemplate(placeholder, id) {
$.ajax({
type: 'GET',
url: '/Get/Data' + id,
success: function (data, textStatus, xhr) {
var placeHolder = $(placeholder);
placeHolder.html(data);
}
});
};
The data returned from the "Get/Data" can be anything with Angular, say
<div>{{1+2}}</div>
Not sure where to go. I tried a few things, but nothing is working. Ideas?
Thanks!!!