<p><b>Customer Name</b></p>
<div ng-repeat="customer in customerList">
<b>{{customer.name}}</b>
<select value="Please choose a bot from the list" ng-model='???' ng-options="b as b.name for b in listOfBots" |>
</select>
</div>
<button ng-click="(getBotSelection())">Choose Bots</button>
I have not been able to locate any resources related to this specific setup. The customerList consists of data imported from an Excel spreadsheet prompting me to make updates for customers. I require a bot to be executed for each customer, hence I am setting ng-options to bot.name in the listOfBots array.
The challenge with my search results is that they tend to focus on iterating through only one collection at a time. I am struggling to implement this particular scenario and would appreciate some guidance.
This is how the list of bots appears:
for (var i = 0; i < listOfBotsArr.length; i++) {
listOfBotsObj.push({
name: listOfBotsArr[i]
});
$scope.$apply();
}