title: AngularStrap typeahead ng-options - different label than model
body: <p>I am using AngularStrap typeahead for some addresses. I would like to assign the selected address object to my ng-model but when I do so I lose the option to just show one of the object properties as the label. </p>
  
  <p>Sample returned object:</p>
  
  <pre><code>{ formatted: '1001 Main St', geo: { lat: '123', lng: '234' } }
  </code></pre>
  
  <p>In view:</p>
  
  <pre><code>&lt;input type="text" class="form-control" ng-model="item.venue" ng-options="address as address.formatted for address in getLocation($viewValue)" placeholder="Enter address" bs-typeahead&gt;
   Venue Object: {{ item.venue }}
  </code></pre>
  
  <p>I would have thought the above would work but it doesn't assign "formatted" as the label value - just blank after selection. Doing he following works but then it only assigns the formatted property to the model:</p>
  
  <pre><code>&lt;input type="text" class="form-control" ng-model="item.venue" ng-options="address. address.formatted as address.formatted for address in getLocation($viewValue)" placeholder="Enter address" bs-typeahead&gt;
  </code></pre>
  
  <p>Fiddle: <a href="http://jsfiddle.net/cyberwombat/30e63qea/1/" rel="nofollow">http://jsfiddle.net/cyberwombat/30e63qea/1/</a></p>