Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent component not accessable #16

Open
TamerZorba opened this issue Jun 17, 2017 · 2 comments
Open

Parent component not accessable #16

TamerZorba opened this issue Jun 17, 2017 · 2 comments

Comments

@TamerZorba
Copy link

I'am trying to access methods defined on the main component, is it missing or it just the documentation is not completed !!

this should help with global methods for all items.

@hilongjw
Copy link
Owner

Try this way

<RecyclerView 
      :options="options"
    ></RecyclerView>
data () {
return { 
  options: {
        props: {
          $parent: this
        }
      }
  }
}

@TamerZorba
Copy link
Author

i think its not working, i couldn't find any related data inside item object, can you plz describe how to access $parent from (Item) scope.

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

No branches or pull requests

2 participants