From a Angular component I am navigating to a different component also by passing some arguments.
What I want to do is to retrieve the ani
object that I passed from the animalComponent
part of it, So I could use the passed object within that component.
Can someone help me out with this ?
displayAnimals(ani) {
this.router.navigate(['/ani/animalComponent', {text1 : ani}]);
}