简体   繁体   English

如何检查ng-show angular中的编码

[英]How to check codition in ng-show angular

当其他标签值为“DONE”时,我想隐藏一个按钮这里是我的代码ng-show="{{transaction.status}}!='DONE'但它不起作用。请帮我解决

Try the code: 试试代码:

ng-show="transaction.status !== 'DONE'"

or 要么

ng-hide="transaction.status === 'DONE'"

ng-show needs an expression. ng-show需要表达。 So it should be in "{{}}" 所以它应该在“{{}}”

ng-show="{{ transaction.status !== 'DONE'}}" 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM