Splice method Issue

Posted 10 months ago by asad98iftikhar

I am deleting an element from an array

    this.my_events.splice(this.current_event);
            this.current_event=null;
            this.old_event=null;
            jQuery('#eventModal').modal('hide');

When i Add Three or More Items in an Array and then Delete any ONE from them it Delete all the items and return Null without refreshing the page i am using Vue.js

If i then refresh the page then the Two elements are shown whats this issue i am begineer with Javascript this help would be usefull

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