I have a component which looks like this
<div class="animal">
<a routerLink="/animal/{{animal.id}}">
<div>
...
</div>
</a>
</div>
It gets animal
object from parent component, which is just a list of childs.
@Input() animal;
When I click on it I'm moving to another component where I want to display some propreties from this clicked animal
object.
I thought of create a service which will store this object but the problem is I don't know how to get only clicked object and not every object from the list.
All the help will be much appreciated.