I am facing an issue with an external JavaScript file (Ad file) that contains a document.write() function. I attempted to load it using $http and then inject it into a document.createElement, but the Ad server does not support this method.
Furthermore, I tried utilizing ng-include in a script, but unfortunately, it did not work as expected.
My goal is to successfully load and run the script within the file. Does anyone have any suggestions on how to achieve this?
The code
<script ng-src=""></script>
also proved to be unsuccessful in executing the script.
Your help would be greatly appreciated. Thank you.