Here's the scenario: I possess a Cat, Dog, and Horse, all of which abide by the Animal interface. Compact components exist for each one - DogComponent, CatComponent, and HorseComponent.
Query:
How can I develop an AnimalComponent that is capable of receiving any Animal object but will display DogComponent if it happens to be a Dog, without resorting to switch-case or numerous v-if statements in the template?
Assume that simply altering imageUrl and title won't suffice.