angular-ranger
v0.2.1
Published
A mobile friendly, super-fast, range slider. He's the hero Your App deserves...
Downloads
2
Readme
angular-ranger
A mobile friendly, super-fast, range slider. No jQuery necessary...
##Installation
####Bower
bower install angular-ranger
####Nuget
install-package AngularJs.Ranger
####Manually
<link rel="stylesheet" href="js/angular-ranger.css">
<script type="text/javascript" src="js/angular-ranger.js"></script>
##Usage
- Install
angular-ranger
using one of the methods above. - Add
angular-ranger
as a module dependency to your app - Drop a ranger into your html
####Javascript
angular.module('app', ['angular-ranger'])
.run(function($rootScope){
$rootScope.value = {
min: 5,
max: 18,
value: 12
};
});
####Html
<!-- Range selection -->
<angular-ranger min="0" max="20" step="1" min-value="value.min" max-value="value.max"></angular-ranger>
<!-- Single value selection -->
<angular-ranger min="0" max="20" step="1" value="value.value"></angular-ranger>
##Notes
- Angular-Ranger uses Sass to make the design highly customizable. Check the sass file for all of the available options.
- Angular-Ranger includes a simple gulpfile so that you can make your own adjustments and build/re-minify using
gulp build
. Keep in mind you will need to install the dev dependencies first usingnpm install
. - This has been tested on Windows, Windows Phone, and iOS. Let me know if you run into any bugs.
- Pull requests are always welcome