I am currently using the following versions of libraries:
- Angular, angular-animate both are v. 1.5.0
- Angular UI Grid v. 3.1.1
- ocLazyLoad v. 1.0.9
- Angular ui router v. 0.2.18
The Error encountered is:
TypeError: $$animateJs is not a function
at d (angular-animate.js:2141)
at angular-animate.js:2131
at h (angular-animate.js:3174)
at Array.d.push.fn (angular-animate.js:3020)
at c (angular-animate.js:423)
at b (angular-animate.js:393)
at angular-animate.js:3042
at m.$digest (angular.js:16714)
at m.$apply (angular.js:16928)
at g (angular.js:11266)
This error occurs when I refresh the page containing UI Grid
and
UI Grid module is loaded by ocLazyLoad.
If I include UI Grid script in <'body'> everything works fine. It only happens when using ocLazyLoad.
Other pages function correctly. State changes also work fine. The issue occurs only during a refresh.
Whether it is F5 or Ctrl + F5
The strangest thing is that my root template appears to be duplicated
https://i.sstatic.net/B6VZX.png
UPDATE:
I have uploaded a sample of the project to GITHUB
So the initial state is $state without GRID
Switching between states works fine.
BUT
Reloading a page on grid state or changing from initial state to one with grid causes the entire template to be duplicated.
The culprit here seems to be angular-animate. Disabling it resolves the issue.
Thank you!