DEV Community

Discussion on: 2 Ways To Dynamically Load Angular Components

Collapse
nightwolfdev profile image
nightwolfdev Author

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.