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

Commit

Permalink
fix: allow library to be loaded async
Browse files Browse the repository at this point in the history
- Fixed execution of style tag addition to inside module.run

Closes #4775
Fixes #3665
  • Loading branch information
wesleycho committed Oct 29, 2015
1 parent 8c0b3f5 commit a851636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<style type=\"text/css\">" + css + "</style>');";
js = "angular.module('ui.bootstrap.carousel').run(function() {!angular.$$csp() && angular.element(document).find('head').prepend('<style type=\"text/css\">" + css + "</style>'); })";
state.js.push(js);

return state;
Expand Down

0 comments on commit a851636

Please sign in to comment.