I asked this <http://stackoverflow.com/questions/36488478/prevent-scrolling-of-child-element-to-propagate-in-angular-2> question on SO and maybe somebody here would be kind enough to answer it. Basically, the problem is that I have a parent component and a child component, both able to scroll but I'm experiencing the common issue in which after reaching the bottom of the child component, its parent component begins to scroll down. I think the following GIF can be helpful to describe this issue:
<http://i.stack.imgur.com/NcQTe.gif> I was trying to fix this by using a custom directive: @Directive({ selector: '[scroller]', }) export class ScrollerDirective { constructor(private elRef: ElementRef, private renderer: Renderer) { renderer.listen(elRef.nativeElement, 'scroll', (event) => { console.log('event!'); event.stopPropagation(); event.preventDefault(); }) } } Does anyone know how to fix this? Regards -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
