Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 994 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 994 Bytes

ecSlider

Build Status directive for eyecon bootstrap slider

Include the file and import the angular ecSlider angular module.

bower install angular-eyecon-bootstrap-slider --save
angular.module('myModule', ['ecSlider']);
        <ec-slider ng-model="myCtrl.val" // value
                   config="myCtrl.sliderConfig" // jquery plugin config object
                   ng-change="callMeOnChange" // optional change callback
                   ng-disabled="myCtrl.disableIfTrue"> // disable when true
        </ec-slider>

The config options are those passed directly to the slider jquery plugin. The directive will re-init if the config changes.

Destruction of scope will call slider('destroy').