Skip to content

under ng-if  #99

@khsmaxim

Description

@khsmaxim

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); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions