Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
fix(docs): allow to load modules that use $animate #185
Browse files Browse the repository at this point in the history
  • Loading branch information
m7r committed May 2, 2016
1 parent 320ba94 commit 25f573b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/templates/js/angular-bootstrap-prettify.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ directive.ngEvalJavascript = ['getEmbeddedTemplate', function(getEmbeddedTemplat
}];


directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location', '$sniffer', '$animate', '$exceptionHandler',
function($templateCache, $browser, docsRootScope, $location, $sniffer, $animate, $exceptionHandler) {
directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location', '$sniffer', '$exceptionHandler',
function($templateCache, $browser, docsRootScope, $location, $sniffer, $exceptionHandler) {
return {
terminal: true,
link: function(scope, element, attrs) {
Expand All @@ -205,7 +205,6 @@ directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location',
$provide.value('$anchorScroll', angular.noop);
$provide.value('$browser', $browser);
$provide.value('$sniffer', $sniffer);
$provide.value('$animate', $animate);
$provide.provider('$location', function() {
this.$get = ['$rootScope', function($rootScope) {
docsRootScope.$on('$locationChangeSuccess', function(event, oldUrl, newUrl) {
Expand Down

0 comments on commit 25f573b

Please sign in to comment.