Greetings,
From my UI/View I make the following calls when for example a button is pressed. ng-click="AddResource(this)"
The payload coming through is huge and fat.
<td id="vendorresource" ><select ng-model="vendorresource" id="{{resource.resourcegroupid}} | orderBy:'resourcegroupsalaraygrade'"
ng-options="resource.resourcegroupsalaraygrade for resource in vm.resources" required></select><input ng-model="internalresourcecount" style="width: 50px;" type="number" required>
<button type="submit" class="icon-plus" class="btn btn-primary" ng-click="AddResource(this)">+</button>
</td>
How can I make it so that it is thin and focused instead of sending all kind of junk and then filtering it down by
doing stuff like
$scope.AddResource = function(data){
resourcegroupid = data.resourcegroupid
}
Thanks much!
AgularJs