MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / encodePath

Function encodePath

code/songhop/www/lib/angular/angular.js:10461–10470  ·  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

10459 * @returns {string}
10460 */
10461function encodePath(path) {
10462 var segments = path.split('/'),
10463 i = segments.length;
10464
10465 while (i--) {
10466 segments[i] = encodeUriSegment(segments[i]);
10467 }
10468
10469 return segments.join('/');
10470}
10471
10472function parseAbsoluteUrl(absoluteUrl, locationObj) {
10473 var parsedUrl = urlResolve(absoluteUrl);

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

encodeUriSegmentFunction · 0.70

Tested by

no test coverage detected