Skip to content

adaptor binds to expression in wrong scope #113

Closed
@l3utterfly

Description

@l3utterfly

When using ui-scroll within a directive with a controller with the ControllerAs syntax, the adaptor seems to be binding to the wrong scope.

E.g. with a controller as cTest, setting adaptor="cTest.adapter". Using ng-inspector, I see that the "adapter" variable is in the $rootScope.cTest.adapter

I don't have an isolated test case just yet, but this happened in the latest version (I was using ui-scroll before with the same syntax it was working properly).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions