Skip to content

Binding to child elements of the component #7

@acidjazz

Description

@acidjazz

I wonder if it would be possible to use this on elements w/in the component, similar to the viewport directive you've made where I can just add the directive anywhere.

Maybe for example w/in my component I add a :in-viewport-child='identifier' and then my watch of inViewport.now is passed that value as a second argument along with visible.

watch: {
  'inViewport.now' (visible, child) {
  }

Or maybe a second type to watch, inViewport.child, this way the feature is a bit more backwards compatible.

I'd definitely find this pretty helpful.

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