I have a form where I need to edit input values. For instance, I have a number of input controls that I want to change the value before the POST happens. I my html:
<input type="text" name="bar" id="bar" ng-model="foo.bar"/>
My Go struct:
type Foo struct{
Bar string `json:"bar"`
}
My Angular controller:
Restangular.all('drugs/new').post($scope.drug).then(......
Before I call .post(), I want to get the input element and set a value. When I do so, right before this POST call, the new value does not get sent in the json.