0

I have this in my template

<h1 ng-show={{campaignDataEmpty}}>You have no campaigns defined</h1>
{{campaignDataEmpty}}

When I breakpoint in the Chrome developer console, I can confirm that $scope.campaignDataEmpty is false.

The page displays

You have no campaigns defined
false

How can this be?

gerl
  • 1,161
  • 2
  • 17
  • 53
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
  • 2
    possible duplicate of [AngularJs: ng-show / ng-hide](http://stackoverflow.com/questions/12599637/angularjs-ng-show-ng-hide) – Matthew Green Sep 16 '15 at 18:41

1 Answers1

5

Remove the curley braces! ngShow already takes an Angular expression.

ng-show="campaignDataEmpty"
tymeJV
  • 103,943
  • 14
  • 161
  • 157