I want to extract data from current URL and use it in controller. For example I have this url:
app.dev/backend/surveys/2
Bits t
Just inject the routeParams service:
http://docs.angularjs.org/api/ngRoute.$routeParams