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

Added Instance Method and Value Bindings #5

Closed
wants to merge 1 commit into from
Closed

Added Instance Method and Value Bindings #5

wants to merge 1 commit into from

Conversation

devanflaherty
Copy link

Wanted to have a few more options via the directive, so I added some bindings.values to look for to set the options for the Scroll Reveal Instance.

Having these extra options and being able to create a SR Instance from my methods was super helpful, hoping it could help someone else as well.

@tserkov
Copy link
Owner

tserkov commented Oct 14, 2017

There are a couple issues with this pull request:

  • You've edited the transpiled distribution file directly. Changes should be made to index.js, and then packaged by running npm run build to update dist/vue-scroll-reveal.js.
  • There's no need to break out each option. The entire binding.value is passed to ScrollReveal as options (see index.js#L7).
  • Adding a $reveal method to the global Vue object is outside the scope of a pure Vue directive.

Thanks!

@tserkov tserkov closed this Oct 14, 2017
@devanflaherty
Copy link
Author

devanflaherty commented Oct 14, 2017 via email

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.

None yet

2 participants