I want to create an angular site for working with files in which users can navigate the file system tree (for example, on github: github.com/angular/angular.js/tree/master/path/to/my/file.js .
I would like to capture part of the path/to/my/file.js url using the angular route:
.when("/files/:myPath", templateUrl: "...", controller: "...")
but, as expected :myPath matches only the next slash.
How can I capture all other parts of the url, including an arbitrary number of slashes?
I found this question which is related, but different in that my url comes up after the angular hash, for example. .../index.html#/files/path/to/my/file .
nh2
source share