While reading the excellent documentation of VueJS, I didn't understand how dynamic async component can get its props from its outer component.
Is that possible? How? They do have a great example here. What if my component has props like "something" need to be passes and render:
<component :is="my-component"></component>
Vue.component('my-component', {
template: '<div>{{something}}</div>',
props: { something: String }
})
Doing something like this will not work:
<component :is="my-component" :something="'text'"></component>
:something is specific name of prop, but the component not always known, so its props are also not known. This is the senario why using so it can by any component.