Search input and $state.go
问题 I've built a small movie search app using AngularJS and Elasticsearch. I used AngularJS UI Bootstrap Typeahead for autocomplete. My app is pretty simple, hp, results page, contact form. What I'd like to do is use ngKeydown/ngKeypress and $state.go on the search input. What I'm looking for is when a user starts typing their query on the hp in the search input, the page goes to the results page on the first keypress and then suggestions begin to appear. Something like this: <form> <input type=