title: How to print data in an array of objects with mongodb and angularjs
body: <p>I am trying to append some data to a div with ng-repeat. </p>
  
  <p><a href="https://i.stack.imgur.com/Z9VGw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z9VGw.png" alt="enter image description here"></a></p>
  
  <p>I am using angularjs and MongoDB without mongoose. Any help would be greatly appreciated.  </p>
  
  <p>An array of objects from server:</p>
  
  <pre><code>[
      {
          _id: "5a733e96aa3c4e1202b347e5",
          image: "lerem",
          title: "Hydration",
          about: "Hydration is key",
          article: "hydor lorem ipsum",
          __v: 0
      },
      {
          _id: "5a7345b1aa3c4e1202b347e6",
          image: "lerem",
          title: "Hydration",
          about: "Hydration is key",
          article: "hydor loremm",
          __v: 0
      },
      {
          _id: "5a735c752aaeb91470fcda61",
          image: "lerem",
          title: "Hydration",
          about: "Hydration is key",
          article: "hydor lorm",
          __v: 0
      }
  ]
  </code></pre>
  
  <p><strong>Angularjs ng-repeat:</strong> </p>
  
  <pre><code>&lt;div ng-controller="ArticleController" ng-repeat="articles in articles | filter:article" class="articles"&gt;
      &lt;h1&gt;{{article.image}}&lt;/h1&gt;
      &lt;h1&gt;{{article.title}}&lt;/h1&gt;
      &lt;h1&gt;{{article.about}}&lt;/h1&gt;
      &lt;h1&gt;{{article.article}}&lt;/h1&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>controller for article:</strong></p>
  
  <pre><code>$http.get("/articles", function(articles) {}
  </code></pre>