DEV Community

Discussion on: 2 Ways To Dynamically Load Angular Components

Collapse
 
wparad profile image
Warren Parad

Also I can say is "Wow, this is so much easier in Vue, it is literally support out of the box with a single property :is="ComponentType""

Collapse
 
nightwolfdev profile image
nightwolfdev

That's great! I'm looking forward to try Vue next. Is it just as easy to pass data to the component that's loaded like that?

Collapse
 
wparad profile image
Warren Parad

Yeah it doesn't matter if you have:
<component :is="widget" :prop1="1" />
or
<:widget :prop1="1" />

You'll get the same thing rendered.