After reading through the angular animation documentation, I decided to try and recreate the demo myself. However, when I clicked the Fold In
button, the text did not change as expected based on the animate define
. It seems that there are issues with the demo and the way the animation is implemented.
You can find my code here: https://jsfiddle.net/jiexishede/5nokogfq/
When working in Webstorm, I made a modification by updating
var app = angular.module('app', []);
to var app = angular.module('app', ['ngAnimate']);
. This resulted in an error message:
Uncaught Error: [$injector:unpr] Unknown provider: $$isDocumentHiddenProvider <- $$isDocumentHidden <- $$animateQueue <- $animate <- $compile <- $$animateQueue
http://errors.angularjs.org/1.5.8/$injector/unpr?p0=%24%24isDocumentHiddenP…eQueue%20%3C-%20%24animate%20%3C-%20%24compile%20%3C-%20%24%24animateQueue
at angular.js:68
at angular.js:4511
at Object.getService [as get] (angular.js:4664)
at angular.js:4516
at getService (angular.js:4664)
at injectionArgs (angular.js:4688)
at Object.invoke (angular.js:4710)
at angular.js:4517
at getService (angular.js:4664)
at injectionArgs (angular.js:4688)
If you have a solution to this issue and can provide a working demo, please share it. I will be happy to upvote your answer. Thank you!