angular-rangeslider icon indicating copy to clipboard operation
angular-rangeslider copied to clipboard

under ng-if

Open khsmaxim opened this issue 9 years ago • 0 comments

Under ng-if vertical orientation works wrong attrs.$observe('orientation', ... pos = 'top'; posOpp = 'bottom'; values still "left" and "right"

faster way to solve it - put watchers under timeout

 $timeout(function() {
     // listen for changes to values
     scope.$watch('min', setMinMax);
     scope.$watch('max', setMinMax);
     scope.$watch(function () {
        return modelMin();
     }, setModelMinMax);
     scope.$watch(function () {
        return modelMax();
     }, setModelMinMax);
 }, 0); 

khsmaxim avatar Mar 15 '16 12:03 khsmaxim