I want to make an angular site dealing with files where users can navigate around in a file system tree, (like on github: github.com/angular/angular.js/tree/master/path/to/my/file.js
.
I would like to capture that path/to/my/file.js
part of the URL with an angular route:
.when("/files/:myPath", templateUrl: "...", controller: "...")
but as expected, :myPath
only matches up to the next slash.
How can I capture all remaining parts of the URL, including an arbitrary number of slashes?
I found this question that is related, but differs in that my URL is fine to be after the angular hash, e.g. .../index.html#/files/path/to/my/file
.