Hey I know this question comes up a lot but the normal fixes do not work.
ts
onChangeFormType(changeFormType) {
this.serverData.getData('questionnaire/' + changeFormType)
.subscribe(
(response: Response) => {
this.formType = response.json();
let key = Object.keys(this.formType);
for (let i = 0; i < key.length; i++) {
this.currentValue.push(this.formType[key[i]])
}
console.log('current Value', this.currentValue);
},
(error) => console.log('Form Error', error)
)}
In console.log('current Value', this.currentValue); works good.
But, when I run ngFor loop in DOM it does not work.
html
<div class="col-9" *ngFor="let data of currentValue">
<div formGroupName="questions">
<div class="form-Group">{{ data.sno }}</div>
<br>
<div class="from-Group">{{ data.question}}</div>
</div>
<div formGroupName="options">
<label>
<input type="radio" formControlName="op1">{{ data.options}}
</label></div>

console.log?