This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.6k
'$$animateJS is not a function' when page is refreshed in non-active tab #14291
Comments
Managed to debug it a little further, it probably has something to do w/ ocLazyLoad. |
I was having the same problem when using .state('auth.signup', {
url: '/signup',
templateUrl: "views/auth/signup.html",
resolve : {
deps : ['$$animateJs','$ocLazyLoad',
function ($$animateJs, $ocLazyLoad) {
return $ocLazyLoad.load('ngResource')
.then( function () {
return $ocLazyLoad.load([
'./js/services/apiCalls.js',
'./js/controllers/signupCtrl.js',
'./js/directives/tabs.js'
])
});
}
]
}
}) |
This is a slightly modified version of the above, thought i'd share (no need for the second promise for me)
|
3 tasks
@acedesigns and @j-r-t I can't thank you guys enough. You just saved my butt. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm having a really weird issue w/ 1.5.2 (I think it happens w/ 1.5.0 as well) where I get an error when an animation starts. The error is:
$$animateJs is not a function
, thrown byprepareAnimation
. I'm not able to narrow down the exact conditions, but it seems to happen when the tab is not focused, and the page is refreshed. I can consistently reproduce it in my development environment (using webpack's reloading mechanism), and it happens for our users intermittently as well (perhaps when they use middle/right click to open a link in a new tab). Unfortunately I can't reproduce it in a plunkr. It seems that $$animateJsProvider is never called.Here's a full stack trace:
The text was updated successfully, but these errors were encountered: