单击时,我必须为标签元素应用颜色,并为 Angular Bootstrap 滑块应用默认值。
html:
<slider step="step" ticks="ticks" ticks-labels="labels" value="radius" ng-model="radius" on-slide="slide(sradius);" on-stop-slide="slide(radius);"></slider>
JS:
$scope.ticks = [1,2,3,4,5];
$scope.labels = [1,2,3,4,5];
$scope.step = "1"
$scope.sradius=3;