Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 988
FelikZ Avatar asked May 27 '13 16:05

FelikZ


1 Answers

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

like image 104
satchmorun Avatar answered Nov 14 '22 17:11

satchmorun