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

Function fireUrlChange

test/angular/1.5/angular.js:6218–6228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6216 }
6217
6218 function fireUrlChange() {
6219 if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) {
6220 return;
6221 }
6222
6223 lastBrowserUrl = self.url();
6224 lastHistoryState = cachedState;
6225 forEach(urlChangeListeners, function(listener) {
6226 listener(self.url(), cachedState);
6227 });
6228 }
6229
6230 /**
6231 * @name $browser#onUrlChange

Callers 1

Calls 3

urlMethod · 0.80
forEachFunction · 0.70
listenerFunction · 0.70

Tested by

no test coverage detected