title: How do you iterate over an array of objects for typeahead?
body: <p><a href="http://angular-ui.github.io/bootstrap/" rel="nofollow">http://angular-ui.github.io/bootstrap/</a></p>
  
  <p>I want to use the bootstrap's typeahead, and search two different key-pairs in an object. How do I iterate over an array objects?</p>
  
  <p>Also could someone explain what for is this?
  <code>typeahead="state for state in states | filter:$viewValue"</code></p>
  
  <p>The <code>for</code> clause is throwing me off and it seems really unclear because <code>state for state</code> shares the same name.</p>