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

Function encodePath

test/angular/1.4/angular.js:11679–11688  ·  view source on GitHub ↗

* Encode path using encodeUriSegment, ignoring forward slashes * * @param {string} path Path to encode * @returns {string}

(path)

Source from the content-addressed store, hash-verified

11677 * @returns {string}
11678 */
11679function encodePath(path) {
11680 var segments = path.split('/'),
11681 i = segments.length;
11682
11683 while (i--) {
11684 segments[i] = encodeUriSegment(segments[i]);
11685 }
11686
11687 return segments.join('/');
11688}
11689
11690function parseAbsoluteUrl(absoluteUrl, locationObj) {
11691 var parsedUrl = urlResolve(absoluteUrl);

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

encodeUriSegmentFunction · 0.70

Tested by

no test coverage detected