diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index c00147fe8dac..53e026bd7fc5 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -136,7 +136,7 @@ module.exports = { .replace(/\\/g, '\\\\') .replace(/'/g, "\\'") .replace(/\r?\n/g, '\\n'); - js = "!angular.$$csp() && angular.element(document).find('head').prepend('');"; + js = "!window.angular.$$csp() && window.angular.element(document).find('head').prepend('');"; state.js.push(js); return state;