In this example of ng-click
, we will use the animation to show and hide the div. Clicking on the button with text Slide Down
will add the class slideDown
which will basically show the div using animation and Slide Up
button will hide the div. See the output: