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

Function encodePath

test/angular/1.5/angular.js:13043–13052  ·  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

13041 * @returns {string}
13042 */
13043function encodePath(path) {
13044 var segments = path.split('/'),
13045 i = segments.length;
13046
13047 while (i--) {
13048 segments[i] = encodeUriSegment(segments[i]);
13049 }
13050
13051 return segments.join('/');
13052}
13053
13054function parseAbsoluteUrl(absoluteUrl, locationObj) {
13055 var parsedUrl = urlResolve(absoluteUrl);

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

encodeUriSegmentFunction · 0.70

Tested by

no test coverage detected