Skip to content

Commit b3ba6d6

Browse files
agustin107geoffreybauduin
authored andcommitted
Update ion.rangeslider version (#17)
* Update ion.rangeslider version, directive and 'How to use..' in README
1 parent 4fa852d commit b3ba6d6

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ angular.module("app").controller("Controller", function ($scope) {
1818

1919
```
2020
<div ng-controller="Controller">
21-
<ion-range-slider min="18" max="60" from="model.age.min" to="model.age.max"></ion-range-slider>
21+
<input ion-range-slider min="18" max="60" from="model.age.min" to="model.age.max" />
2222
</div>
2323
```
2424

bower.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{
22
"name": "ion.rangeslider-angularjs",
3-
"version": "1.0.7",
3+
"version": "1.1.0",
44
"homepage": "https://github.com/lght/ion-range-slider-angularjs/",
55
"authors": [
66
"Geoffrey Bauduin <[email protected]>"
77
],
8+
"contributors": [
9+
"Agustin N. R. Ramirez <[email protected]>"
10+
],
811
"description": "ionic Range Slider for AngularJS",
912
"main": "ionic-range-slider.js",
1013
"keywords": [
1114
"angularjs",
12-
"angular",
1315
"ionic",
1416
"slider",
1517
"rangeslider",
@@ -24,6 +26,6 @@
2426
"tests"
2527
],
2628
"dependencies": {
27-
"ion.rangeslider": "2.1.2"
29+
"ion.rangeslider": "2.1.6"
2830
}
2931
}

ionic-range-slider.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ angular.module("ion.rangeslider", []);
77
angular.module("ion.rangeslider").directive("ionRangeSlider",
88
function($timeout) {
99
return {
10-
restrict: "E",
10+
restrict: "A",
1111
scope: {
1212
min: "=",
1313
max: "=",
@@ -60,34 +60,34 @@ angular.module("ion.rangeslider").directive("ionRangeSlider",
6060
disable: $scope.disable,
6161
type: $scope.type,
6262
step: $scope.step,
63-
minInterval: $scope.min_interval,
64-
maxInterval: $scope.max_interval,
65-
dragInterval: $scope.drag_interval,
63+
min_interval: $scope.minInterval,
64+
max_interval: $scope.maxInterval,
65+
drag_interval: $scope.dragInterval,
6666
values: $scope.values,
67-
fromFixed: $scope.from_fixed,
68-
fromMin: $scope.from_min,
69-
fromMax: $scope.from_max,
70-
fromShadow: $scope.from_shadow,
71-
toFixed: $scope.to_fixed,
72-
toMax: $scope.to_max,
73-
toShadow: $scope.to_shadow,
74-
prettifyEnabled: $scope.prettify_enabled,
75-
prettifySeparator: $scope.prettify_separator,
76-
forceEdges: $scope.force_edges,
67+
from_fixed: $scope.fromFixed,
68+
from_min: $scope.fromMin,
69+
from_max: $scope.fromMax,
70+
from_shadow: $scope.fromShadow,
71+
to_fixed: $scope.toFixed,
72+
to_max: $scope.toMax,
73+
to_shadow: $scope.toShadow,
74+
prettify_enabled: $scope.prettifyEnabled,
75+
prettify_separator: $scope.prettifySeparator,
76+
force_edges: $scope.forceEdges,
7777
keyboard: $scope.keyboard,
78-
keyboardStep: $scope.keyboard_step,
78+
keyboard_step: $scope.keyboardStep,
7979
grid: $scope.grid,
80-
gridMargin: $scope.grid_margin,
81-
gridNum: $scope.grid_num,
82-
gridSnap: $scope.grid_snap,
83-
hideMinMax: $scope.hide_min_max,
84-
hideFromTo: $scope.hide_from_to,
80+
grid_margin: $scope.gridMargin,
81+
grid_num: $scope.gridNum,
82+
grid_snap: $scope.gridSnap,
83+
hide_min_max: $scope.hideMinMax,
84+
hide_from_to: $scope.hideFromTo,
8585
prefix: $scope.prefix,
8686
postfix: $scope.postfix,
87-
maxPostfix: $scope.max_postfix,
88-
decorateBoth: $scope.decorate_both,
89-
valuesSeparator: $scope.values_separator,
90-
inputValuesSeparator: $scope.input_values_separator,
87+
max_postfix: $scope.maxPostfix,
88+
decorate_both: $scope.decorateBoth,
89+
values_separator: $scope.valuesSeparator,
90+
input_values_separator: $scope.inputValuesSeparator,
9191

9292
prettify: function(value) {
9393
if (!attrs.prettify) {

0 commit comments

Comments
 (0)