Angular ng-if=""有多个参数 [英] Angular ng-if="" with multiple arguments

查看:25
本文介绍了Angular ng-if=""有多个参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开始角度开发.在查看文档后,一些问题仍然存在.我如何最好地编写一个 ng-if 与对应于

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

if( a && b)if( a || b )

推荐答案

这是可能的.

<span ng-if="checked && checked2">
  I'm removed when the checkbox is unchecked.
</span>

http://plnkr.co/edit/UKNoaaJX5KG3J7AswhLV?p=preview

这篇关于Angular ng-if=""有多个参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆