Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Get value from each *ngFor ionic 4, ionic 5, ionic 6

async onDelete(box: Box) {

      await Swal.fire({
        title: 'Are you sure?',
        text: 'Blah, blah',
        icon: 'warning',
        iconColor: '#5038de',
        showCancelButton: true,
        confirmButtonColor: '#5038de',
        cancelButtonColor: '#e0b500',
        confirmButtonText: 'Yes',
        cancelButtonText: 'No',
        heightAuto: false,
        showClass: {
          popup: 'animated fade-in'
        },
        hideClass: {
          popup: 'animated fade-out'
        }
      }).then(async (result) => {
        if (result.value) {
          await this.boxService.deleteBox(box)
          this.goTo()
        } else {
          this.goTo()
        }
      });

    }
  }
 
PREVIOUS NEXT
Tagged: #Get #ionic #ionic #ionic
ADD COMMENT
Topic
Name
6+4 =