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

Function fireUrlChange

test/angular/1.3/angular.js:5149–5159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5147 }
5148
5149 function fireUrlChange() {
5150 if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) {
5151 return;
5152 }
5153
5154 lastBrowserUrl = self.url();
5155 lastHistoryState = cachedState;
5156 forEach(urlChangeListeners, function(listener) {
5157 listener(self.url(), cachedState);
5158 });
5159 }
5160
5161 /**
5162 * @name $browser#onUrlChange

Callers 1

Calls 3

urlMethod · 0.80
forEachFunction · 0.70
listenerFunction · 0.70

Tested by

no test coverage detected