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

Function normalizePath

test/angular/1.7/angular.js:14413–14419  ·  view source on GitHub ↗
(pathValue, searchValue, hashValue)

Source from the content-addressed store, hash-verified

14411}
14412
14413function normalizePath(pathValue, searchValue, hashValue) {
14414 var search = toKeyValue(searchValue),
14415 hash = hashValue ? '#' + encodeUriSegment(hashValue) : '',
14416 path = encodePath(pathValue);
14417
14418 return path + (search ? '?' + search : '') + hash;
14419}
14420
14421function parseAbsoluteUrl(absoluteUrl, locationObj) {
14422 var parsedUrl = urlResolve(absoluteUrl);

Callers 1

angular.jsFile · 0.85

Calls 3

toKeyValueFunction · 0.70
encodeUriSegmentFunction · 0.70
encodePathFunction · 0.70

Tested by

no test coverage detected