title: Global search box in angular
body: <p>I want to implement a search box that changes what it searches based on whichever controller is being used.  If you are on the "posts" view it will search the posts api, if you are on the videos view, it searches the videos api.  It seems the search box would need its own controller maybe. I'm pretty sure I need to inject a search service into all the model controllers but I'm not exactly sure how to change the url it searches or tie the input to the different controller scopes.</p>
  
  <p>So any ideas how to have a global search box that changes where it searches based on whichever controller is making use of it and tying its state back into a changing view?</p>