I am using "itunes-search" module in nodejs and it is send the sends the search results as Json data. The Json data has a filed named "artistName" which has duplicates element I can see. but I want to print the "artistName" values discarding the duplicates instance. Means one value should be printed only one time. I have only included the
<script type="text/javascript" src="/angular.js"></script>
<script src="js/angular-file-upload.min.js"></script>
I am trying with the bellowed code. But it is not working. Multiple elements of value are also printed.
<ul>
<li data-ng-repeat="data in response | orderBy:'artistName' | unique:'artistName' ">
<b> {{data.artistName}} <b><br/>
</li>
</ul>
I will really appreciate him who will help me.