title: Unable to get showLoaderOnConfirm working with SweetAlert2
body: <p>I am having issues getting the <code>showLoaderOnConfirm</code> working using <code>sweetalert2</code> and <code>ngSweetAlert</code> for AngularJS.</p>
  
  <p>The following code will execute fine and without error, however, I get no waiting animation.  The alert will disappear and then pop back up once the request has been returned.</p>
  
  <pre><code>       $scope.passwordReset = function() {
  
              swal({
                  title: 'Forgot Password?', 
                  text: 'Enter your email address and your password will be reset and emailed to you.', 
                  input: 'email', 
                  showCancelButton: true, 
                  confirmButtonText: 'Send', 
                  confirmButtonColor: "#DD6B55", 
                  inputPlaceholder: 'Email address', 
                  showLoaderOnConfirm: true
              }).then(function( email ) {
  
                  if( email ) {
  
                      AccountFactory.resetAccount( email )
                          .then(function( data ) {
  
                              swal({
                                  title: 'Success!', 
                                  text: 'A verification email has been sent to ' + email, 
                                  type: 'success', 
                                  confirmButtonText: 'Close', 
                                  allowEscapeKey: false
                              });
  
                          }, function( error ) {
  
                              swal({
                                  title: 'Email not found', 
                                  text: 'Sorry, but we could not find an account matching that email address.', 
                                  type: 'error', 
                                  confirmButtonText: 'Close', 
                                  allowEscapeKey: true
                              });
  
                              console.log( 'Failed to reset password: ', error );
  
                          });
  
                  }
  
              });
  
          };
  </code></pre>
  
  <p>I have tried playing around with the <code>preConfirm</code> function but that makes little difference.  Rather than the alert disappearing, it will remain on screen but still no animation.</p>
  
  <p>Where am I going wrong?</p>
  
  <p>My <code>AccountFactory</code> returns the following function:</p>
  
  <pre><code>            resetAccount: function( email ) {
  
                  var deferred = $q.defer();
  
                  $http({
                      url: ApplicationConstants.apiServerPath + 'api/users/reset', 
                      method: 'POST', 
                      data: 'email=' + email, 
                      headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
                  })
                  .success( function( data ) {
  
                      deferred.resolve( data );   
  
                  })
                  .error( function( error ) {
  
                      deferred.reject( error );
  
                  });
  
                  return deferred.promise;
  
              }
  </code></pre>