Here is the HTML code I am working with:
<div layout="row" layout-align="center center">
<md-select placeholder="Property type" ng-model="id" md-on-open="loadProperties()" style="min-width: 200px; padding: 20px;">
<md-option ng-value="id" ng-repeat="id in list" >{{id.propertyType}}</md-option>
</md-select>
</div>
This code fetches data using Angular from the following JSON:
{
"properties": [
{
"propertyId": "5702581e3678da025f79c83d",
"price": 493967,
"mainImg": "//loremflickr.com/668/501/house,facade",
"images": [
{
"thumbUrl": "//loremflickr.com/372/279/property,interior",
"mainUrl": "//loremflickr.com/668/501/property,interior"
},
...
],
"beds": 6,
"propertyType": "Terraced House",
"propertyAddress": "628 Arlington Avenue, Jardine, California, 2444",
"description": "Fugiat voluptate sunt deserunt sit tempor culpa.... aute qui. Nulla adipisicing officia sunt incididunt cillum qui exercitation officia labore esse minim. Enim occaecat mollit amet laboris id excepteur elit mollit ex tempor exercitation duis.\r\n"
}
The JSON contains various properties with unique propertyIDs but sometimes similar PropertyTypes. However, when trying to create a select box like this Select-img, duplicate values are displayed as shown in the image provided.
How can I prevent these duplicated values from appearing?
Thank you for your help and apologies for any language errors.