I have a file JSON with several elements. I want to retrieve this 2 variables in my webpage.
"LIN":"",
"LIB":"Droits de garde pour juillet 2021 Fundsettle",
"ZON":" 2,60 EUR",
"COL":""
My file JSON is on Jsonblob
For now, I retrieve each element on my page, Instead of Droits de garde pour juillet 2021 Fundsettle and 2.60 EUR.
HTML
<div class="row">
<div class="col-12 col-md-6" *ngFor="let l of annexeDetails?.TAB; let i=index">
<div class="col-12 col-md-6">
{{l.LIB}}
</div>
<div class="col-12 col-md-6">
{{l.ZON}}
</div>
</div>
</div>
TS
prepareDataForTemplate(res) {
if (res.RETURNCODE == 'OKK00') {
this.annexeDetails = res.JANX;
console.log("Test" + JSON.stringify(this.annexeDetails));
} else {
if (res.RETURNLIST.length > 0) {
this.errors = res.RETURNLIST;
}
}
}
I think that the problem is my code HTML, but I am not sure.
Thanks