I need to access a share component that I have included in my home page. I have included this before my footer , but at the top, I have a button and when that button is clicked I want to direct the user at this part of the home page.
<button
class="popular__button"
routerLink="/popular-categories"
id="home__middle-box-button"
style="cursor: pointer;">
Popular categories
</button>
.........
......
<app-listing>
</app-listing>
<app-footer>
</app-footer>
I tried with the traditional way, but when I try to access this it takes me in a kind of new page and I don't want that. Can anyone help me with any trick how to access this part of the page.
the component i want ot access look like this :
<app-browse-grid [categories]="categories$" class="popular">
<h2>{{ 'category.popular-categories' | translate }}</h2>
</app-browse-grid>
<div fxLayout="column wrap" fxLayout.lt-sm="column" fxLayoutGap="32px" fxLayoutAlign="space-evenly center">
<div class="button" fxFlex.sm="calc(100%)">
<button class="catalog__button" routerLink="/browse">
All categories
</button>
</div>
</div>