title: Setting a particular object for a section of HTML with AngularJS
body: <p><em>Apologies if this is a duplicate -- this is a hard question to search for because it's about very common functionality, but doesn't have any distinctive keywords...</em></p>
  
  <p>I know how to use <strong>ng-repeat</strong> to obtain objects one by one, eg: </p>
  
  <pre><code>&lt;li ng-repeat="person in people"&gt;{{person.name}} {{person.address}}&lt;/li&gt;
  </code></pre>
  
  <p>But what if I want to specify a particular object? I mean something like: <strong><em>(I realize this is not correct Angular)</em></strong> </p>
  
  <pre><code>&lt;h1&gt;Project Directors' Contact Info&lt;/h1&gt;
  &lt;li&gt;{{personWithName('Jonah').name}} {{personWithName('Jonah').address}}&lt;/li&gt;
  &lt;li&gt;{{personWithName('Ann').name}} {{personWithName('Ann').address}}&lt;/li&gt;
  </code></pre>
  
  <p>or maybe </p>
  
  <pre><code>&lt;h1&gt;Project Directors' Contact Info&lt;/h1&gt;
  &lt;li ng-model="{person = personWithName('Jonah')}"&gt;{{person.name}} {{person.address}}&lt;/li&gt;
  &lt;li ng-model="{person = personWithName('Ann')}"&gt;{{person.name}} {{person.address}}&lt;/li&gt;
  </code></pre>
  
  <p>Assuming I have some function in the controller's scope that makes it easy to grab the particular object/record I want, what's the right syntax for creating a sort of variable in the angular view markup so i'm not just calling that grab/find function over and over?</p>