AngularJS Example
HTML
<div ng-app="app">
<div ng-controller="ParentCtrl">
<div data-ng-repeat="date in dates | uniqueDates">
<div>{{ date }}</div>
</div>
</div>
</div>
CSS
</style>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.css"/>
<style>
JavaScript
angular.module('app', [])
.filter("uniqueDates", function(){
return function(input){
var returnInput = [];
for(var x = 0; x < input.length; x++){
if(returnInput.indexOf(input[x]) === -1){
returnInput.push(input[x]);
}
}
return returnInput;
};
});
function ParentCtrl($scope){
$scope.dates = [
100,
101,
102,
102,
104
];
}