I'm looking for a way on how to avoid showing duplicate values when using ng-repeat for Angular JS.
I have a JSON list which look like :
[
{
"Country":"Algeria",
"Value":"200"
},
{
"Country":"France",
"Value":"300"
},
{
"Country":"France",
"Value":"600"
},
]
and my JS code to show countries :
<a class="item" href="#" ng-repeat="item in items">
{{ list.country }}
</a>
Is possible to use ng-if or any condition code to don't show duplicate items ?
to show only : Algeria France in my example