I would like to get my all url parts after "/". Example:
http://myadress.com/#/example/url/here/param1
Result: ['example', 'url', 'here'].
But $routeParams returns only object with route parameters {param1: 'param1'}
How can I do this ?
Another alternative to Jo_bast's answer would be to use hash rather than pathname as hash will start after the /#/
Both are correct, just different ways of using $window.location. Using hash, however, prevents you from having to deal with the path before the hash(#) in the url.
var path = $window.location.hash.split('/');
var path1 = path[1]; //example;
var path2 = path[2]; //url;
etc...
Remember that Angular is still JavaScript. You can use native js functions to do that.
Check out the location documentation.
You can use location.pathname to achieve what you want.
// http://myadress.com/#/example/url/here/param1
location.pathname.split('/') // --> ['', '#', 'example', 'url', 'here', 'param1']