MCPcopy Index your code
hub / github.com/angular-ui/ui-router / fireStateOrUrlChange

Function fireStateOrUrlChange

test/angular/1.7/angular.js:6700–6713  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6698 }
6699
6700 function fireStateOrUrlChange() {
6701 var prevLastHistoryState = lastHistoryState;
6702 cacheState();
6703
6704 if (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) {
6705 return;
6706 }
6707
6708 lastBrowserUrl = self.url();
6709 lastHistoryState = cachedState;
6710 forEach(urlChangeListeners, function(listener) {
6711 listener(self.url(), cachedState);
6712 });
6713 }
6714
6715 /**
6716 * @name $browser#onUrlChange

Callers 1

Calls 4

urlMethod · 0.80
cacheStateFunction · 0.70
forEachFunction · 0.70
listenerFunction · 0.70

Tested by

no test coverage detected