I am developing a small search app using AngularJS. I have an empty div that I want to replace with another div containing ng-include after running a function. The replacement of the div works fine, but ng-include does not load properly.
For testing purposes, I am currently using the following code in the console to try and make it work. Can anyone provide assistance on how to resolve this issue? Any help would be greatly appreciated!
document.getElementById("resultsDiv").innerHTML = '<div ng-include="" src=" \'sr.html\' "></div>';