I have a collection of data that includes sub-collections with a common key (TypeOfServiceAssigned:Array(2)) in both inner arrays. I am looking to use ng-repeat to group similar key-value pairs together and separate those that are different.
For a clearer explanation, refer to the example below:
Array = [
{
Quotation:1200,
TypeOfServiceAssigned:["Primary", "Partial Services"],
VendorEmail:"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1b5a5b7c767a727735787476">[email protected]</a>"
},{
Quotation:1350,
TypeOfServiceAssigned:["Partial Services"],
VendorEmail:"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="83c2e7e7c3e4eee2eaefade0ecee">[email protected]</a>"
}
];
My goal is to use ng repeat on Array so that it organizes the data into two groups based on the values in TypeOfServiceAssigned - one for Primary and another for Partial Services. Additionally, for Partial Services, it will display two separate lists.