I got this external JavaScript file(Ad file), which has a document.write() in it. I have tried loading it with $http, and then injecting it into a document.createElement, but the Ad server doesn't support this method; $http.get.
I have tried ng-include in a script, but no work.
I need to load the script in the file, and the run the script. How do I do it?
<script ng-src=""></script>
doesn't work either. It does not run the script.
Thanks.