I have this.
var studentsList = [
    {"Id": "101", "name": "One"},
    {"Id": "101", "name": "One"},
    {"Id": "102", "name": "Two"},
    {"Id": "103", "name": "Three"},
    {"Id": "103", "name": "Three"},
    {"Id": "104", "name": "Four"},
    {"Id": "104", "name": "Four"}
];
I want to toggle, remove duplicates from this object on click.
<button ng-click="removeDuplicates = !removeDuplicates"></button>
How can I do this, any ideas?
Thank in advance :)
 
     
    