title: Response from Sweet-alert confirm dialog
body: <p>I have a function where i costumize my sweet-alert dialog. I want to use it in a lot of places and therefore set that in a function like:</p>
  
  <pre><code>$rootScope.giveConfirmDialog = function(title,text,confirmButtonText,toBeExecFunction){
          swal({title: title,   
          text: title,
          .....
          confirmButtonText: confirmButtonText }, 
          toBeExecFunction);
      }
  </code></pre>
  
  <p>What i want to do is simple: calling that function in somewhere and go on based on the answer of the user, thus:</p>
  
  <pre><code>var res = $scope.$root.giveConfirmDialog("..",
                  "test", "test", function () {
                  return true;
              });
  </code></pre>
  
  <p>But i don't take any response. Actually, i couldn't find such an example and i think its not the common way of use. But how can it be possible?</p>