Is there a way to change the visibility of a div on a different page when a button or link is clicked? For example, I have a button on the "main.html" page that, when clicked, should display a hidden div on the "header.html" page. How can I achieve this?
In index.html, I have the following button code:
<button type="button" class="btn btn-default px-4" [routerLink]="['../home']" (click)="">Entrar</button>
In header.html, the code is:
`<div class="page">
Hello {{'user'}}, welcome! Today is {{today | date:'dd/MM/yyyy'}}
</div>`
The div in header.html should initially be hidden, and when the button in index.html is clicked, it should become visible.