ionic-framework - Ionic 5 Modal UI 未绑定到控制器属性
问题描述
我有一个带有输入的模态,并将控制器中的输入设置为默认值。输入不显示默认值,并且在输入中输入值时,它不适用于控制器属性。
模态输入:
模态控制器:
绑定不起作用:
知道为什么绑定在模态上不起作用吗?
解决方案
I figured it out after a few hours.
I had to import
the modal's Module
into the parent's Module
.
推荐阅读
- networking - 网络可视化(node_shape)
- javascript - 在网页中嵌入 Python IDE 并输出由 Python 代码生成的动画
- nginx - 你如何实现基本的nginx速率限制?
- javascript - 将 Google Sheet 的 v4 JSON Endpoint 与我的 API 一起使用,但仍然收到“未经授权”消息
- oauth-2.0 - 在自定义后端使用 Firebase 身份验证作为提供程序
- google-apps-script - 每个 GScript 移动一个文件
- airflow - 气流2.2时间表,总是有错误:时间表未注册
- rest - 【HTTP响应码】一个REST API是否只响应一个成功码?
- javascript - 将子类与父类沟通 - 正确的方式
- griddb - 容器中数据的 Griddb 时区