title: Angular 1 - get current URL parameters
body: <p>I want to extract data from current URL and use it in controller. 
  For example I have this url:</p>
  
  <blockquote>
    <p>app.dev/backend/surveys/2</p>
  </blockquote>
  
  <p>Bits that I want to extract:</p>
  
  <blockquote>
    <p>app.dev/backend/ <strong>:type</strong> / <strong>:id</strong></p>
  </blockquote>
  
  <p>Is there anything in Angular that could help me with this task ?</p>