MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / encodePath

Function encodePath

test/fixtures/foo.js:9157–9166  ·  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

9155 * @returns {string}
9156 */
9157function encodePath(path) {
9158 var segments = path.split('/'),
9159 i = segments.length;
9160
9161 while (i--) {
9162 segments[i] = encodeUriSegment(segments[i]);
9163 }
9164
9165 return segments.join('/');
9166}
9167
9168function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) {
9169 var parsedUrl = urlResolve(absoluteUrl, appBase);

Callers 3

LocationHtml5UrlFunction · 0.85
LocationHashbangUrlFunction · 0.85

Calls 1

encodeUriSegmentFunction · 0.85

Tested by

no test coverage detected