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

Function encodePath

test/angular/1.2/angular.js:9265–9274  ·  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

9263 * @returns {string}
9264 */
9265function encodePath(path) {
9266 var segments = path.split('/'),
9267 i = segments.length;
9268
9269 while (i--) {
9270 segments[i] = encodeUriSegment(segments[i]);
9271 }
9272
9273 return segments.join('/');
9274}
9275
9276function parseAbsoluteUrl(absoluteUrl, locationObj, appBase) {
9277 var parsedUrl = urlResolve(absoluteUrl, appBase);

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

encodeUriSegmentFunction · 0.70

Tested by

no test coverage detected