It appears that the rg-slider
directive you are using does not have the functionality you are looking for. To simplify things, I recommend trying a more versatile slider such as this one:
Update:
To see the code in action, paste the following code into this jsfiddle and click run:
JS
var app = angular.module('rzSliderDemo', ['rzModule', 'ui.bootstrap']);
app.controller('MainCtrl', function ($scope, $rootScope, $timeout, $modal) {
//Slider with ticks and values
$scope.slider_ticks_values = {
value: 0,
options: {
ceil: 5,
floor: 0,
showTicksValues: true,
translate: function (value) {
return value + ' Lakhs';
}
}
};
});
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="rzSliderDemo">
<div ng-controller="MainCtrl" class="wrapper">
<header>
<h1>AngularJS Touch Slider</h1>
</header>
<article>
<h2>Slider with ticks and values</h2>
<rzslider rz-slider-model="slider_ticks_values.value" rz-slider-options="slider_ticks_values.options"></rzslider>
</article>
</div>
</div>