DEV Community

Discussion on: The Magic of Vue's Dynamic Components For Lists of Data

Collapse
 
alexparra profile image
Alex Parra

I really like this.
And you can also use v-bind to pass an object thus passing multiple props in a compact way or even a calculated way dependent on the item type. Same for event listeners with v-on.

Collapse
 
drewtownchi profile image
Drew Town

Exactly! I did this in the project I was working on but wanted to keep the example simple. Thanks for the reply 😊