AngularJS ng-route how to make http request on resolve
问题 I have a simple template with an input and an anchor link which, upon pressing it, will load another template. I want this second template to fetch the information via a http request. I am using ng-route to redirect to the search template by default and to the results template from the path /search/:title, and I am trying to use resolve to make the request before loading the results template (code in plunker) The main problem I am facing is that when I add the resolve the controller stops