tiefenb tiefenb - 1 year ago 248
React JSX Question

Reacts this.props.children in vue.js component

React has something like

: https://facebook.github.io/react/tips/children-props-type.html

Does Vue.js have also some similar to access the child-elements?

Answer Source

Vue.js has this.$children, which also gives you an array of child components


If you want to reference specific components, you might want to use v-ref and this.$refs

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download