-
Notifications
You must be signed in to change notification settings - Fork 21
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
Does Spy any element scroll can do this ? #170
Comments
Yes this should be easy to achieve. Try something like:
You can then subscribe to selectContext$. |
@JonnyBGod excellent , thanks |
Let me know if it worked, might have some bugs or need some changes I just did it out of my head in a few minutes, did not test it. Will definitely need to find some time for documentation. |
error like this happen after I 've tried your code :( |
can you try moving the conde inside constructor to ngAfterviewinit? |
@JonnyBGod yes, I do exactly the same as your code |
Any suggestions? |
@anleo you have to import
To your app.module.ts. |
I created a plunker that implements an example of this: https://plnkr.co/edit/7a2V6b5LMs3WGTw1HdVk?p=preview |
I want to active css class when I scroll to div id that I define.
thanks
The text was updated successfully, but these errors were encountered: