Skip to content

Scroll to element from another component #9

Description

@AndFer22

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions