MCPcopy
hub / github.com/angular-ui/ui-router / encodePath

Function encodePath

test/angular/1.3/angular.js:10580–10589  ·  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

10578 * @returns {string}
10579 */
10580function encodePath(path) {
10581 var segments = path.split('/'),
10582 i = segments.length;
10583
10584 while (i--) {
10585 segments[i] = encodeUriSegment(segments[i]);
10586 }
10587
10588 return segments.join('/');
10589}
10590
10591function parseAbsoluteUrl(absoluteUrl, locationObj) {
10592 var parsedUrl = urlResolve(absoluteUrl);

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

encodeUriSegmentFunction · 0.70

Tested by

no test coverage detected