I display JSON in pre tag using json pipe. Unfortunately when I edit JSON I don't see changes in value variable so how can I bind these values?
<pre contenteditable="true">{{value | json}}</pre>
I display JSON in pre tag using json pipe. Unfortunately when I edit JSON I don't see changes in value variable so how can I bind these values?
<pre contenteditable="true">{{value | json}}</pre>
MAybe have you tried something like:
<input type="text" col="5" [(NgModel)]="value" />
<pre contenteditable="true">{{value | json}}</pre>
So put your json in a text area with a bind on your value?
Hope it helps you!!