I need assistance with displaying an array object in a select tag utilizing only AngularJS. Below is the structure of my array object:
"matcherObject": {
"Percentage Off": [
{
"dealType": "Percentage Off",
"subCategory": "16% to 20%",
"recid": 2
},
{
"dealType": "Percentage Off",
"subCategory": "10 to 15 %",
"recid": 1
},
{
"dealType": "Percentage Off",
"subCategory": "21% to 25%",
"recid": 3
}
],
"Special Deals based on the event": [
{
"dealType": "Special Deals based on the event",
"subCategory": "Buy 1 get one entr",
"recid": 52
},
{
"dealType": "Special Deals based on the event",
"subCategory": "Buy 1 get one entr",
"recid": 54
}
]
};
I am seeking guidance on how to display this object in a select tag. Below is an illustration of how it should appear in the user interface:
Upon selecting a tag, the ng-model should be displayed in the following format:
{"dealType": "Percentage Off","subCategory": "16% to 20%","recid": 2}