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

Scroll to element from another component #9

Open
AndFer22 opened this issue Mar 21, 2018 · 0 comments
Open

Scroll to element from another component #9

AndFer22 opened this issue Mar 21, 2018 · 0 comments

Comments

@AndFer22
Copy link

AndFer22 commented Mar 21, 2018

Hi!
I have some conflicts to do scroll to an element of a different component from where my button is.
For example mi button is in app-button-view and my div that I want to go is in app-home-view but in the end everything is shown on the same page.

My button is this
<button class="btn btn-enlace" scrollTo="sectionA" duration="1800"(click)="onClick()">Ver contabilidad</button>
My div is this
<div id="sectionA"></div>

How can I do the button see the id of my div?

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

1 participant