FelikZ
FelikZ

Reputation: 3077

AngularJS: ng-if boolean condition doesn't work?

Why ng-if doesn't work for me in this example but ng-show does JSFiddle:

<div ng-if="false">text</div>
<div ng-show="false">text2</div>

and how to fix that?

Upvotes: 8

Views: 11363

Answers (1)

satchmorun
satchmorun

Reputation: 12477

ngIf is a new directive added in v1.1.5. JSFiddle has you on 1.1.1.

Upvotes: 23

Related Questions