title: How to catch event when click on link with the same url in AngularJS?
body: <p>I have 2 links:</p>
  
  <pre><code>&lt;a href="#link1"&gt;First&lt;/a&gt;
  &lt;a href="#link2"&gt;Second&lt;/a&gt;
  </code></pre>
  
  <p>And 2 controllers:</p>
  
  <pre><code>app.controller('firstCtrl', function($scope) {
      $scope.$on('$locationChangeStart', function (event, nextPage, currentPage) {
          alert("ok");
  }
  
  app.controller('secondCtrl', function() {}
  </code></pre>
  
  <p>When I go from second link to first link, I see alert. How how to add event, if I stay on 1st link (=firstCtrl) and click on 1st link again?</p>
  
  <p>Attention: I want to get new and old url</p>