I'm trying to create an animation for an element that is initially hidden by a ng-show="boolDefaultIsFalse"
attribute.
When I trigger the boolean to be true then the element is shown, but the animation doesn't play.
This is because the element never gets the ng-show
class. It does start with a ng-hide
class. But as soon as I show the element then that class is removed and no new ones are added.
Here's a demo of my problem: http://plnkr.co/edit/OkJnxKlp9Ym1mc8CCD05
Anyone any idea how to solve this problem?
Update
I've updated the Plunker.
I added the ng-class
directive to add the ng-show
class manually to the div
. But the animation still doesn't play.