I am trying to print json object in textarea using ngModel
.
I have done following:
Unless you really want to have sync in between, you would normally implement a button to save/apply the change when it's finished json editing. If that is the case, your render is easy.
Make sure no other space or return character in between the above line.
Then an traditional button, ex.
Apply
I found this is better in some case than brutal [(rapidPage)]
.
You can also use @ViewChild('textbox') input
inside the component to access this variable.