I have implemented a 'meta' modal box using both bootstrap and angularjs. My current goal is to utilize this setup for saving entered details and sending them to the web API that is running behind the scenes. The functionality works perfectly, but since it's a 'meta' modal intended for various data entry methods, I need to dynamically generate the key of the posted data. For example:
var dataSender = [{ ID: $scope.iUserItem, ClientName: userItem.Name }];
The ClientName
property needs to be changed dynamically each time. Is there a way to pass a variable into this section, or do I need to write separate post requests for each piece of 'meta' data being sent?