html - AngularJS:字段被 ng-disabled 禁用,但不能用 ng-hide 隐藏
问题描述
我是 AngularJS 的新手,我有这个疑问:
<select-one options="studentOptions" ng-disabled="student.type == 1"></select-one>
^ 使用上面的代码片段,我可以禁用(或变灰)一堆单选按钮。但我想隐藏那些单选按钮,所以我将其更改为:
<select-one options="studentOptions" ng-hide="student.type == 1"></select-one>
不过,现在已经没有效果了!你能帮我理解我哪里出错了吗?当我将“ng-disabled”更改为“ng-hide”时,我希望这些单选按钮会被隐藏,但我没有得到预期的结果。
解决方案
推荐阅读
- java - 无法从 Java 类外部调用方法
- apache-kafka - 将 CometD 客户端与 Kafka 生产者连接
- mysql - 无法在子行上添加或更新
- python - 您如何指定对其他列进行操作的 pandas groupby 和聚合操作?
- java - 我可以将 Apache Avro 仅用于 JSON 文档模式验证吗?
- android - 在 Android Studio 3.1.2 中使用 Anko 从 xml 文件加载时,是否有一种简单的方法来获取控件?
- jenkins - 如何在 Jenkinsfile 中获取 shell 脚本的输出?
- f# - 带参数的 NancyFx F# 应用程序
- python - 滚动框中的Python抓取元素
- java - 调试错误,nbjpdastart 不支持嵌套的“modulepath”元素