tushar-borole / ng-sweet-alert

:loudspeaker: Sweetalert directive for angular js( angular sweetalert), without writing single javascript code
http://tushariscoolster.github.io/ng-sweet-alert
151 stars 42 forks source link

TypeError: sweetElement.click is not a function #18

Open devfelipereis opened 7 years ago

devfelipereis commented 7 years ago

I got this when I try this simple code:

<a class="button button-positive button-small" sweetalert sweet-options="{title: 'Are you sure?',text: 'You will not be able to recover this imaginary file!',type: 'warning',showCancelButton: true,confirmButtonColor: '#DD6B55',confirmButtonText: 'Yes, delete it!',cancelButtonText: 'No, cancel plx!'}" sweet-confirm-option="{title: 'Deleted!',text: 'Your imaginary file has been deleted.',type: 'success'}" sweet-cancel-option="{title: 'Cancelled!',text: 'Your imaginary file is safe',type: 'error'}" sweet-on-cancel="alert('sss')" sweet-on-confirm="alert('ccc')"><i class="icon ion-edit"></i></a>

The service is working fine.. any ideia? Thank you!