How To Send Object To Child Component In Vue Elementui
I am new to vue. so here is my vue template
Solution 1:
You're using class components in Vue typescript. To pass props you need to either use the classic Vue properties or by annotating your class members:
import { Component, Prop } from 'vue-property-decorator'
@Component
export default class App extends Vue {
// Makes a "exampleProperty" a component prop with the default value of 'Example'
@Prop({default: 'Example'})
exampleProperty: string
}
Post a Comment for "How To Send Object To Child Component In Vue Elementui"