Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit a851636

Browse files
committed
fix: allow library to be loaded async
- Fixed execution of style tag addition to inside module.run Closes #4775 Fixes #3665
1 parent 8c0b3f5 commit a851636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ module.exports = function(grunt) {
444444
.replace(/\\/g, '\\\\')
445445
.replace(/'/g, "\\'")
446446
.replace(/\r?\n/g, '\\n');
447-
js = "!angular.$$csp() && angular.element(document).find('head').prepend('<style type=\"text/css\">" + css + "</style>');";
447+
js = "angular.module('ui.bootstrap.carousel').run(function() {!angular.$$csp() && angular.element(document).find('head').prepend('<style type=\"text/css\">" + css + "</style>'); })";
448448
state.js.push(js);
449449

450450
return state;

0 commit comments

Comments
 (0)