ALINAWAZ
1 month ago
138
1
Vue

how to remove the error Array of object in vue js

Posted 1 month ago by ALINAWAZ

When I am try to remove the object in array then get the error in vue js

this my code

{{item.title}}

${{item.price}}

@click="removeElementCCandy(i);" class="card-text"> Remove

                                </div>
                            </div>
                        </div>
                        <div class="col-md-3"></div>
                    </div>

selectchocolates[],

removeElementCCandy: function(index) { this.selectchocolates.splice(index, 1); this.id.splice(index, 1); },

Please sign in or create an account to participate in this conversation.