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