Injecting AngularJS 1.4.7 into an IE crossrider extension Injecting AngularJS 1.4.7 into an IE crossrider extension angularjs angularjs

Injecting AngularJS 1.4.7 into an IE crossrider extension


I think you have a mixed scopes issue here. appAPI.resources.includeJS runs in the Extension Page scope which the jq element you ate adding runs in the HTML Page scope. If you want to add the AngularJS to the HTML Page scope, use appAPI.resources.addInlineJS as follows:

var jq = document.createElement('script');jq.src = "https://http://code.jquery.com/jquery-1.11.3.js";document.getElementsByTagName('body')[0].appendChild(jq);appAPI.resources.addInlineJS('js/angular.min.js');

[Disclosure: I am a Crossrider employee]