Answer the question
In order to leave comments, you need to log in
How to implement partial rendering in Vue.js?
The application has an array of objects.
var objects = [{id:1, title: 'One'}, {id:1, title: 'Two'}, {id:1, title: 'Three'}];
Vue.component(
'item',
{ props: ['model'],
template: '<div>{{model.id}}, {{model.title}}</div>'
});
<item v-for="model in Models" :model="model"/>
objects.push( new { id:4, title: 'Four' } );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question