I'm using Vue in an application where I have a list of items and a button to add more items. When you click add I load an external html with a component:
<div class="gutters-8 col-lg-6">
<div class="form-group combined-inputs">
<span class="upload-image">
<label>
<i class="material-icons"></i>
<input type="file">
</label>
</span>
<input-animate label="Descrição do produto" type="text"></input-animate>
</div>
</div>
The page opens however does not render the component.
When you click the button to add the component, the addProduct method is called:
methods: {
addProduct: function() {
$.get('/do/Suppliers.mvc/ProdutoCatalogo')
.then(function(page){
$('.products-list').prepend(page)
}, function(){
console.log('Erro ao carregar a página')
})
}
}
Would you like to type a refresh on the component only?