title: How to alert and deleted a task using Sweet alert and vue.js?
body: <p>I am getting a confirm alert message by Sweet Alert but when I clicked the confirmed message, I am not able to delete the task.</p>
  
  <pre><code>methods: {
      confirmDelete: function(index) { //index is passed by the button
          //var self = this;
          swal({
              title: 'Are you sure?',
              text: "You won't be able to revert this!",
              type: 'warning',
              showCancelButton: true,
              confirmButtonColor: '#3085d6',
              cancelButtonColor: '#d33',
              confirmButtonText: 'Yes, delete it!',
              closeOnConfirm: true
          }, function(isConfirm) {
              if (isConfirm) {
                  this.contacts.splice(index, 1);
                  swal(
                      'Deleted!',
                      'Your file has been deleted.',
                      'success'
                  );
  
                  return true;
              } else {
                  return false;
              }
          }.bind(this));
      }
  }
  </code></pre>