javascript - Custom subcomponent receives parent component data, how to use v-for to render multiple subcomponents
PHP中文网
PHP中文网 2017-05-19 10:44:00
0
1
622


Code first

Now there are 4 objects passed to the child component. How to use v-for to render 4 child components? Should v-for be placed in the template of the parent component or in the child component

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
伊谢尔伦

It must be placed in the child component, because if you use v-for to render the child component directly in the parent component, you cannot display the data in the object array (regardless of slot)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template