This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ng-show not working with ng-animate after event.preventDefault() #12296
Closed
Description
When aborting a location change with event.preventDefault() ng-show depending on the $location is not evaluated correctly.
This only happens since angular 1.4 if angular-animate is included in the module dependency.
See Plunker for example:
- click 'go to sub-page'
- click 'go home'
- cancel the dialog
==> route stays on sub page, home link is shown for home
Workaround: Using ng-if instead of ng-show works as expected.