Check out my example on CodePen
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.js"></script>
<script src="https://rawgit.com/rzajac/angularjs-slider/master/dist/rzslider.js"></script>
<div ng-app="rzSliderExample">
<div ng-controller="ControllerMain" class="container">
<section>
<rzslider rz-slider-model="sliderCtrl.minValue"
rz-slider-high="sliderCtrl.maxValue"
rz-slider-options="sliderCtrl.options"></rzslider>
</section>
</div>
</div>
JAVASCRIPT
var app = angular.module('rzSliderExample', ['rzModule', 'ui.bootstrap']);
app.controller('ControllerMain', function ($scope, $rootScope, $timeout, $modal) {
var dateStart = new Date(2016, 2, 15);
var dateEnd = new Date();
var d;
var dateList = [dateStart];
while(dateStart <= dateEnd) {
d = dateStart.getDate()
dateStart = new Date(dateStart.setDate(++d));
dateList.push(dateStart);
}
$scope.sliderCtrl = {
minValue: dateList[0],
maxValue: dateList[dateList.length-1],
value: dateList[0],
options: {
stepsArray: dateList,
translate: function(date) {
if (date != null)
return date.toISOString();
return '';
}
}
};
});