I am working with ng-dynamic-form (version 6.0.4) and NG Bootstrap in Angular 6. I have a simple question.
When a button click event is triggered, I want to change the value in DynamicRadioGroupModel by using the "setValue()" method. However, I am facing an issue where the UI does not update after setting the value in the FormController. Can you help me solve this problem?
<div class="overflow-hidden content-margin container-fluid" style="width: 50%;">
<form class="form-horizontal" [formGroup]="formGroup">
<dynamic-ng-bootstrap-form-control *ngFor="let formModelCtrl of formModel"
[group]="formGroup"
[layout]="formLayout"
[model]="formModelCtrl"
(blur)="onBlur($event)"
(change)="onChange($event)"
(focus)="onFocus($event)"
(ngbEvent)="onNgbEvent($event)"></dynamic-ng-bootstrap-form-control>
</form>
<button (click)="test()" type="button">Test</button>
<pre>{{formGroup.value | json}}</pre>