Here is a navigation link example:
<a (click)="mylink(someLink)">SomeLink</a>
This link belongs to the following container:
<div #someLink class="someLink active">
Container Content
</div>
The TypeScript code currently only works within the same component. However, I want to separate the links into their own navigation component and have another component for the content.
mylink(page: any, event: any) {
page.classList.add('active'); // This will display the 'WebContainer SomeLink'
}
How can I achieve this setup?