When using a conditional directive like ngIf on radio input, value on ngForm for that control will be empty. As well as the control itself on ngForm. This happens on Template driven forms.
Angular CLI: 7.0.5
Node: 10.14.1
OS: linux x64
Angular: 7.0.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.10.5
@angular-devkit/build-optimizer 0.10.5
@angular-devkit/core 7.0.5
@angular-devkit/schematics 7.0.5
@angular/cli 7.0.5
@ngtools/webpack 7.0.5
@schematics/angular 7.0.5
@schematics/update 0.10.5
rxjs 6.3.3
typescript 3.1.6
webpack 4.25.1
🐞 bug report
Affected Package
@angular/forms
Description
When using a conditional directive like ngIf on radio input, value on ngForm for that control will be empty. As well as the control itself on ngForm. This happens on Template driven forms.
🔬 Minimal Reproduction
https://stackblitz.com/fork/angular-dssxnc
🌍 Your Environment
Angular Version: