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

Function fireUrlChange

test/angular/1.4/angular.js:5935–5945  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5933 }
5934
5935 function fireUrlChange() {
5936 if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) {
5937 return;
5938 }
5939
5940 lastBrowserUrl = self.url();
5941 lastHistoryState = cachedState;
5942 forEach(urlChangeListeners, function(listener) {
5943 listener(self.url(), cachedState);
5944 });
5945 }
5946
5947 /**
5948 * @name $browser#onUrlChange

Callers 1

Calls 3

urlMethod · 0.80
forEachFunction · 0.70
listenerFunction · 0.70

Tested by

no test coverage detected