I am fairly new to AngularJS.
I am trying to bind an object to a textarea.
HTML:
<textarea rows="5" cols="10" ng-model="menuItem.preset"></textarea>
Model:
{
"kind": "title",
"label": "ADD_TITLE",
"iconSrc": "textTitle.png",
"experimentInclude": "",
"experimentExclude": "three",
"preset": {
"compType": "richTitle",
"styleId": "txtNew"
}
}
Result:
How can I show the JSON stringified (and later save it as an object again)?