title: Redirect to another view angular
body: <p>I'm using sweetalert to display messages to the user. I want to redirect to another view after showing the messages.</p>
  
  <p>My sweet messages looks like this:</p>
  
  <pre><code>swal({
   title: "Some",
   text: "Good for you!",
   type: "success",
   confirmButtonColor: "#3bed94",
   confirmButtonText: "Go to other view!!!!",
   closeOnConfirm: true,
   html: true
   }, function (isConfirm) {
      $location.path('/myViewToShow');
     //$window.location.path('/myViewToShow');
  });
  </code></pre>
  
  <p>This message is shown when the user clicks on "save" button, inside the alert they see the "Go to other view!!" button, but it is not redirecting to the other view until it clicks again on the button "save".</p>
  
  <p>Any ideas?</p>