我使用的框架(Angular 7)。
我想像这样为 FormControl 设置一些类型。
startDate: FormControl<NgbDate>;
endDate: FormControl<NgbDate>;
您是否有任何经验或它在 Angular 上是不可能的?
最佳答案
目前是不可能的。将此问题检查到 Angular GitHub Reactive forms are not strongly typed
关于angular - 可以为 FormControl 值设置某种类型吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56381034/