DEV Community

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

Collapse
 
marcellothearcane profile image
marcellothearcane

Could you explain a bit more? Is <component> a special Vue thing, and the actual component file is whatever is rendered into :is=""?

Collapse
 
anduser96 profile image
Andrei Gatej

As far as I know, if you provide a string for the isproperty, it would search through the registered components and will try to find the component, depending on the name that you provided.

The is property also accepts a promise as a value. When would you use a promise? Here is a small demo I wrote a while ago. If you go this route, you do not have to register your components in the
components property.