javascript - How to write expression inside ng-if -
i have put expression inside ng-if should evaluated , content displayed based on value. code is
<a ng-if="abc.status===failure" href="http://localhost:3000/abc/abc">image</a>
currently never getting displayed. surprisingly syntax of double quotes works if want test if value null
<a ng-if="value" href="http://localhost:3000/abc/abc">{{image}}</a>
how evaluate abc.status===failure , assign result ng-if
wrap failure
in quote, change:
<a ng-if="abc.status===failure" href="http://localhost:3000/abc/abc">image</a>
to
<a ng-if="abc.status==='failure'" href="http://localhost:3000/abc/abc">image</a>
Comments
Post a Comment