Skip to content

Issue 16#44

Closed
localBlackMage wants to merge 3 commits intoecha:masterfrom
localBlackMage:master
Closed

Issue 16#44
localBlackMage wants to merge 3 commits intoecha:masterfrom
localBlackMage:master

Conversation

@localBlackMage
Copy link

#16

The problem turned out to be that the ng-scrollable hadn't compiled before the children, so it wouldn't respond to any $scope.$emit's made by children nor would it properly examine the size of the DOM.

Moving the link function to preLink fixes this by having ng-scrollable compile BEFORE child elements.

Updated documentation, reversing $emit and $broadcast as $emit goes UP the DOM, $broadcast goes DOWN the DOM.

…ctives will compile before children directives. This will fix the issue with children calling .emit not reaching the ngScrollable as it hadn't been compiled yet. Updated the readme.md, reversing and as goes UP along the DOM and goes DOWN, so children of ngScrollable should be calling rather than .
@echa
Copy link
Owner

echa commented Apr 22, 2017

I finally remembered your PR .. :/ and made a version less intrusive in the number of lines changed (due to indentation). Closing this now.

@echa echa closed this Apr 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants