title: trigger is not working in angular js
body: <p>trigger is not working in angular js</p>
  
  <pre><code> $http({
       method: 'POST',
       url: partial_path + '/test.php',
       data: 'action=create&amp;d=' + localStorage.getItem('lastid'),
       headers: {
           'Content-Type': 'application/x-www-form-urlencoded'
       }
   }).success(function(data) {
       if (data != "error") {
           var url = partial_path + '/' + data;
           //alert(url);
           $("#hreflink").attr("href", url);
           $('#hreflink').trigger('click');
       }
   });
  </code></pre>
  
  <p>Hi i am new to angular js </p>
  
  <p>Trigger event is not working in angular js ajax loaded template</p>
  
  <p>Please help to fix this issue</p>
  
  <p><strong>Updated</strong></p>
  
  <p>window.open(url, '_blank');</p>
  
  <p>window.open is working but its ask popup browser alert </p>