title: Trying to dynamically display a model using Angular
body: <p>I'm having trouble trying to dynamically display all o the json values in angular using <code>ng-repat</code> </p>
  
  <p>here what what I'am hoping to replacate using hard coded values</p>
  
  <p>html</p>
  
  <pre><code> &lt;div ng-repeat="user in users"&gt;
              {{user.userId}} {{user.userName}} {{user.password}}
          &lt;/div&gt;
  </code></pre>
  
  <p>output</p>
  
  <pre><code>3 DAve password
  4 bob password
  4 kjdjkdj
  1 names password2
  </code></pre>
  
  <p>I'm trying to write the angular repeat to be more generic so I can pass i any amount of json gather from a mongoose model. So far I've gotten</p>
  
  <pre><code>&lt;div ng-repeat="(key, value) in users"&gt;
          &lt;td&gt; {{key}} &lt;/td&gt; &lt;td&gt; {{ value }} &lt;/td&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>With this loop I'm getting too much information with an output that follows</p>
  
  <pre><code>0 {"_id":"527a732fe5f8dabf5b00020c","userId":3,"userName":"DAve","password":"password"}
  1 {"userId":4,"userName":"bob","password":"password","_id":"527abf6ebaa5eb8426000001","__v":0}
  2 {"userId":4,"password":"kjdjkdj","_id":"527d62fc85612ab42b000001","__v":0}
  3 {"__v":0,"_id":"528130182c5544b81f000002","password":"password2","userId":1,"userName":"names"}
  </code></pre>
  
  <p>how can i modify the following loop to output only the userName password and userId without having to explicitly declare them like in my first loop. </p>