首页 > 解决方案 > Ionic 5 Modal UI 未绑定到控制器属性

问题描述

我有一个带有输入的模态,并将控制器中的输入设置为默认值。输入不显示默认值,并且在输入中输入值时,它不适用于控制器属性。

模态输入:

在此处输入图像描述

模态控制器:

在此处输入图像描述

绑定不起作用:

在此处输入图像描述

知道为什么绑定在模态上不起作用吗?

标签: ionic-frameworkionic5

解决方案


I figured it out after a few hours.

I had to import the modal's Module into the parent's Module.


推荐阅读