MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / encodePath

Function encodePath

lib/test/angular/1.5.0/angular.js:12107–12116  ·  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

12105 * @returns {string}
12106 */
12107function encodePath(path) {
12108 var segments = path.split('/'),
12109 i = segments.length;
12110
12111 while (i--) {
12112 segments[i] = encodeUriSegment(segments[i]);
12113 }
12114
12115 return segments.join('/');
12116}
12117
12118function parseAbsoluteUrl(absoluteUrl, locationObj) {
12119 var parsedUrl = urlResolve(absoluteUrl);

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

encodeUriSegmentFunction · 0.70

Tested by

no test coverage detected