javascript - AngularJS Infinit loop -


on edge , explorer only, have infinit loop in angulat.js v1.2.18 @ line 9763

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.18/angular.min.js"></script>  // update browser      var changecounter = 0;      $rootscope.$watch(function $locationwatch() {        var oldurl = $browser.url();        var currentreplace = $location.$$replace;          if (!changecounter || oldurl != $location.absurl()) {          changecounter++;          $rootscope.$evalasync(function() {            if ($rootscope.$broadcast('$locationchangestart', $location.absurl(), oldurl).                defaultprevented) {              $location.$$parse(oldurl);            } else {              $browser.url($location.absurl(), currentreplace);              afterlocationchange(oldurl);            }          });        }        $location.$$replace = false;          return changecounter;      });	function deregisterwatch() { arrayremove(array, watcher); lastdirtywatch = null; }

location.$$replace -> remain false $location.absurl changed. |for more details please let me know!


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -