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,151
  • 2
  • 17
  • 52
Mawg says reinstate Monica
  • 36,598
  • 98
  • 292
  • 531
  • 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
  • 102,126
  • 13
  • 159
  • 155