function afterLocationChange(oldUrl) {
      $rootScope.$broadcast('$locationChangeSuccess', $location.absUrl(), oldUrl);
    }
@ngdoc event
@name ng.$location#$locationChangeSuccess
@eventOf ng.$location
@eventType broadcast on root scope
@description
Broadcasted after a URL was changed.

@param {Object} angularEvent Synthetic event object.
@param {string} newUrl New URL
@param {string=} oldUrl URL that was before it was changed.