Could you offer some guidance on how to push the content from a text box into JSON when I click outside of the box? Below is the code for my text box:
<input type="text" name="treatmentCost" class="form-control" ng-model="addTemplate" />
And here is the JSON structure I am working with:
$scope.existingTemp = [{"name": "template1"},{"name": "template2"},{"name": "template3"},{"name": "template4"},{"name": "template5"}];
Any suggestions or ideas are greatly appreciated. Thank you in advance.