Framework which I use (Angular 7).
I want set some type for FormControl like this.
startDate: FormControl<NgbDate>;
endDate: FormControl<NgbDate>;
Do you have any experience with it or it is not posible in angular?
1. Default Value. If we want to set a default value to our form control, we can pass a default value while instantiating a FormControl in our class. city = new FormControl('Noida'); married = new FormControl(true);
For now it's not possibile. Check this issue to Angular GitHub Reactive forms are not strongly typed
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With