Wednesday, 14 August 2013

Does ng-if condition work with simple expressions?

Does ng-if condition work with simple expressions?

I gave ng-if a try after reading:
Conditional logic in AngularJS template
My code is:
<p ng-if="false">abc</p>
But I still see abc.
So what are valid expressions in ng-if?
Here are the surroundings of the <p>:
<body class="" ng-controller="Main">
...
<div class="system--dashboard">
<p ng-if="false">abc</p>
...

No comments:

Post a Comment