I want to dynamically display the next form by changing the value of isDataRequest, but the actual isDataRequest value will change, but the template will not change. The value of each change is stored through subject, and then subscribed in the template, so that the template will be displayed dynamically. Why is it useless to bind variables directly? for details, please see stackblitz
.<nz-form-item class="dct-col-24">
<nz-form-label nzSpan="8"></nz-form-label>
<nz-form-control nzSpan="16">
<nz-radio-group [(ngModel)]="isDataRequest" (ngModelChange)="testChange($event)">
<label nz-radio nzValue="0"></label>
<label nz-radio nzValue="1"></label>
</nz-radio-group>
</nz-form-control>
</nz-form-item>
<nz-form-item class="dct-col-24" *ngIf="!isDataRequest">
<nz-form-label nzSpan="8"></nz-form-label>
<nz-form-control nzSpan="16">
<nz-select nzAllowClear [(ngModel)]="defaultValue">
<nz-option [nzLabel]=""test1"" [nzValue]="1">
</nz-option>
<nz-option [nzLabel]=""test2"" [nzValue]="2">
</nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
<nz-form-item class="dct-col-24" *ngIf="isDataRequest">
<nz-form-label nzSpan="8"></nz-form-label>
<nz-form-control nzSpan="16">
<input nz-input [(ngModel)]="defaultValue">
</nz-form-control>
</nz-form-item>
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)