I have a list with a lot of equipments. Each equipment has a button called "Detalhes". If I click in this button, I want to show just the info about that specific equipment (passing serialnumber, for example). How can I pass the serial number after switch between component?
Here's my html for the first page:
<div *ngFor="let equipment of equipments" class="card small card-small">
<p>{{ equipment.equipmentName }}</p>
<div class="container">
<div class="card-content">
{{ equipment.serialnumber }}
<p>
<a href="/equipDetail">Detalhes</a>
</p>
<p>
<a (click)="open(modalcontent, equipment)">Editar</a>
</p>
</div>
</div>
</div>
/equipDetail is the component that I want to show, after user click. This component should have all the data about the equipment, I can get this data with http calls if I get the serialnumber first.