角NG-IF =""与多个参数 [英] Angular ng-if="" with multiple arguments
本文介绍了角NG-IF =""与多个参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图让角开始发展。和审查的一些问题依然存在的文档后。我如何最好写 NG-如果
对应于多个参数
I am trying to get started on angular development. And after reviewing the documentation some questions persist. How do i best write a ng-if
with multiple arguments corresponding to
如果(A和和b)
或如果(A || B)
推荐答案
这是可能的。
<span ng-if="checked && checked2">
I'm removed when the checkbox is unchecked.
</span>
<一个href=\"http://plnkr.co/edit/UKNoaaJX5KG3J7AswhLV?p=$p$pview\">http://plnkr.co/edit/UKNoaaJX5KG3J7AswhLV?p=$p$pview
这篇关于角NG-IF =&QUOT;&QUOT;与多个参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文