title: ng-options from a json with angularjs
body: <p>i got a json that looks like this </p>
  
  <pre><code>[{"partner_id":"8","partner_name":"Company1","partner_location":["Place1","Place2","Place3"],"partner_user":["User1","User2","User3"]},{"partner_id":"9","partner_name":"Company2","partner_location":["Place4","Place5"],"partner_user":["User4","User5"]}]
  </code></pre>
  
  <p>Now i want to do something like this. I have 2  dropdowns and i want the first one to be filled with the partner_name from my 2 lists so it has to look like this</p>
  
  <pre><code>&lt;select&gt;
      &lt;option value="8"&gt;Company1&lt;/option&gt;
      &lt;option value="9"&gt;Company2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>but i want it to be selected already with a value that i set inside <code>service_id</code>.
  I understand you can do this somehow like this </p>
  
  <pre><code>&lt;select ng-options="partner for partner in jsonPartners" ng-model="service_id"&gt;&lt;/select&gt;
  </code></pre>
  
  <p>but when i do this, i have inside my select 2 options called <code>[object Object]</code></p>
  
  <p>And the 2nd select is more tricky, i want it to have the locations of what the id was selected in my 1st select. So if i selected <code>Company1</code>, than it should be filled with <code>Place1, Place2, Place3</code> and if i selected <code>Company2</code>, it should be filled with <code>Place4, Place5</code>.</p>
  
  <p>Thank you in advance, Daniel!</p>