So I’m passing a component as a variable through the store e.g.
<template>
<div>
<component :is="store.state.General.body"></component>
</div>
</template>
<script>
import store from "@/store"
</script>
Now I was wondering how I would pass the component with props because this is how I’m doing it:
<script>
import Input from "@/components/Input"
methods: {
example() {
store.commit("general_set_modal", {body: Input, title: "New "+page})
}
</script>
it’s being rendered properly, but just lacks the desired props.
scriptarea. I would probably have to assign it likevar input = Inputthen haveinputassign the props likeinput.prop.example = "this is an example prop"templatearea:<component :is="store..." v-bind="somePropsObjectYouBuilt">