I work on my AngularJS project I use ui-route syntax.
My path when application starts is:
../../factories#/facilities/data/
Or sometimes it has some parameter:
../../factories#/facilities/data/55
How can I check if path contains parameter if it is, how can I get it from the path?