Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Is a $apply missing? #61

Open
Open
@vrracing

Description

@vrracing

Running the provided example.html completely unaltered...

angular-slider

The single slider is being declared as...

<slider //configRemovedForClarity// ng-model='value' style="width: {{ sliderWidth }};">
Value:

and $scope.value is defined in the controller like...

$scope.value = 5;

However, the controller's 'value' isnt getting updated. In Models for (003) you can see that 'value' is 9. But in the slider on the left, you can see I dragged the slider to 6 and if we were to look inside Scope (004) value would be equal to 6 matching what's in the DOM.

If I run a $scope.$apply(), the bindings will get sync'd and the controller's 'value' will change to 6.

Thanks,

Jim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions