I have this string:
"{filter: [{\"attribute\":\"quoteitemnum\",\"filterOperation\":\"EQUALS\",\"expressionValue\":\"581-2019-2\"}]}"
im trying to have nice format json in textarea:
<textarea [ngModel]="request | json" disabled></textarea>
But this is not working.
I tried this also:
const myObjStr = JSON.stringify(this.request);
this.obj.request = JSON.parse(myObjStr);
<textarea [ngModel]="obj.request" disabled></textarea>
and
<textarea [ngModel]="obj.request | json" disabled></textarea>
But its not working. Any suggestion?