Upon receiving my get request
$scope.variables = response.data;
this is my select statement:
<select name="varSelect" id="varSelect" ng-model="wid.adapter">
<option ng-repeat="variable in variables" value="{{variable.id}}">{{variable.name}}</option>
</select>
following the select, there are two input fields
<input type="text" ng-model="wid.url" />
<input type="text" ng-model="wid.name" />
When the button is clicked, I intend to post wid object
$http.post(some_url, $scope.wid).then(function (response) {
console.log(response);
});
The issue lies in not obtaining the variable within wid.adapter. Only the id is retrieved. How should I modify the code to retrieve the variable instead of the id?