I'm using:
- 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 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 which contains UI Grid
and
UI Grid module is loaded by ocLazyLoad.
If I place UI Grid script in <'body'> all work fine. Just when I use ocLazyLoad.
Other pages work fine. When I change state also works fine. Only when refreshing.
Not matter if it is F5 or Ctrl + F5
The most strange thing I've seen is that my root template is duplicated
UPDATE:
I've uploaded project sample to GITHUB
So the initial state is $state without GRID
If you switch between the states everything works fine.
BUT
If you reload a page on grid state or change initial state to state with grid entire template is duplicated.
The reason of this is angular-animate. If it is turned off everything is OK.
Thanks!