This one has got me stumped. It was working last week and suddenly stopped working. An element I have ng-show on is visible even though it's evaluating as false.
In the script:
$scope.alerts = { message: '', success: false, error: false, notice: false };
In the markup:
<div class="alert success" ng-show="alerts.success">
<strong>SUCCESS!</strong>
<div>{{alerts.message}}</div>
</div>
For testing purposes, I placed a {{alerts.success}} in the markup to make sure it is indeed evaluating to false, and i can confirm that it is.
Any idea why this would happen?
ps: Unfortunately, I can't post more code than this.
Apparently, this is a known problem (https://github.com/angular/angular.js/issues/4394) with version 1.2. We introduced ng-csp into our project last week and it doesn't play well with ng-show/hide. I added the css snippet below which I got from https://groups.google.com/forum/#!topic/angular/w00KgEi1DLk and it works fine now. Thanks for your responses!