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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -