Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions slider.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
(function(factory) {
if (typeof define === 'function' && define.amd) {
define(['angular', 'bootstrapSlider'], factory);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 'bootstrapSlider' and not 'bootstrap-slider' like in the original bootstrap-slider project ???

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it's more annoying to type ['bootstrap-slider'].

} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('angular'), require('bootstrapSlider'));
} else if (window) {
factory(window.angular, window.Slider);
}
})(function (angular, Slider) {

angular.module('ui.bootstrap-slider', [])
.directive('slider', ['$parse', '$timeout', '$rootScope', function ($parse, $timeout, $rootScope) {
return {
Expand Down Expand Up @@ -219,3 +229,4 @@ angular.module('ui.bootstrap-slider', [])
};
}])
;
});