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
ex: url/:id
var sample= app.controller('sample', function ($scope, $routeParams) { $scope.init = function () { var qa_id = $routeParams.qa_id; } });