Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added Instance Method and Value Bindings #5

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

Closed
devanflaherty wants to merge 1 commit into tserkov:master from devanflaherty:master
Closed

Added Instance Method and Value Bindings #5

devanflaherty wants to merge 1 commit into tserkov:master from devanflaherty:master

Conversation

@devanflaherty
Copy link

@devanflaherty devanflaherty commented Oct 13, 2017

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.

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!

Copy link
Author

devanflaherty commented Oct 14, 2017 via email

Oh okay cool. Still learning.
...
On Sat, Oct 14, 2017 at 2:25 PM James ***@***.***> wrote: 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 <https://github.com/tserkov/vue-scroll-reveal/blob/670fa68e12feeeb7ef59932852cdac59109c2bea/index.js#L7> ). - Adding a $reveal method to the global Vue object is outside the scope of a pure Vue directive. Thanks! — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#5 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACX_sY9I8G3NMBw3gZBpQOsU_hr0p5Nzks5ssRi6gaJpZM4P44Wg> .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /