SyntaxFix
Write A Post
Hire A Developer
Questions
Better would have been generate url like
app.dev/backend?type=surveys&id=2
and then use
var type=$location.search().type; var id=$location.search().id;
and inject $location in controller.