title: Deep JSON result in AngularJS partial
body: <p>I have a 'deep' json result which I have to display in an AngularJS partial.</p>
  
  <p>I want to display some attributes of the 'person' node. I have a single result, with only one person.
  Actually, this is what I'm doing :</p>
  
  <pre><code>Name : {{country.state.town.city.street.houseNumber.person.name}}
  FirstName : {{country.state.town.city.street.houseNumber.person.firstName}}
  dob : {{country.state.town.city.street.houseNumber.person.dob}}
  Phone : {{country.state.town.city.street.houseNumber.person.Phone}}
  </code></pre>
  
  <p>What I would like to do is : </p>
  
  <pre><code>var person = country.state.town.city.street.houseNumber.person
  
  Name : {{person.name}}
  FirstName : {{person.firstName}}
  dob : {{person.dob}}
  Phone : {{person.Phone}}
  </code></pre>
  
  <p>Because a partial is a html file with some ng* elements, and I don't want to hack JS within this file, how could I 'create' a local variable ?</p>