From a8516369f4453c87c7eee9bad4cff1aaf29da1cb Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Wed, 28 Oct 2015 23:53:07 -0700 Subject: [PATCH] fix: allow library to be loaded async - Fixed execution of style tag addition to inside module.run Closes #4775 Fixes #3665 --- Gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 12f4be355b..ceac68d1e6 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -444,7 +444,7 @@ module.exports = function(grunt) { .replace(/\\/g, '\\\\') .replace(/'/g, "\\'") .replace(/\r?\n/g, '\\n'); - js = "!angular.$$csp() && angular.element(document).find('head').prepend('');"; + js = "angular.module('ui.bootstrap.carousel').run(function() {!angular.$$csp() && angular.element(document).find('head').prepend(''); })"; state.js.push(js); return state;