Skip to content

Commit

Permalink
Added optional class to disable ng-animate for an element (#6)
Browse files Browse the repository at this point in the history
* Added optional class to disable ng-animate for an element
* Minified js
  • Loading branch information
tuj authored Nov 11, 2019
1 parent 55d6d8e commit 9bae16f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
29 changes: 17 additions & 12 deletions Resources/public/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,24 @@ angular.module('ikApp', [
'angular.css.injector'
]
).config(function ($sceDelegateProvider) {
'use strict';
'use strict';

// The administration interface and the client code do not run on the same
// domain/sub-domain hence we need to white-list the domains to load slide
// templates and CSS form the administration domain.
$sceDelegateProvider.resourceUrlWhitelist([
// Allow same origin resource loads.
'self',
// Allow loading from outer templates domain.
'**'
]);
}).config(function($animateProvider) {
'use strict';

// The administration interface and the client code do not run on the same
// domain/sub-domain hence we need to white-list the domains to load slide
// templates and CSS form the administration domain.
$sceDelegateProvider.resourceUrlWhitelist([
// Allow same origin resource loads.
'self',
// Allow loading from outer templates domain.
'**'
]);
}
).config(function ($provide) {
// Add option to disable ng-animate for an element by adding the class
// "ng-animate-disabled".
$animateProvider.classNameFilter(/^(?:(?!ng-animate-disabled).)*$/);
}).config(function ($provide) {
'use strict';

$provide.decorator("$exceptionHandler", ['$delegate', '$injector',
Expand Down
Loading

0 comments on commit 9bae16f

Please sign in to comment.