title: Angular ng-repeat not showing data on laravel?
body: <p>The console shows that the posts were retrieved successfully, the backend works fine without the angular compatibility.</p>
  
  <p>and its supposed to retrieve post data.</p>
  
  <blockquote>
    <p>angular.js:12701 XHR finished loading: GET
    "<a href="http://127.0.0.1:8000/auth/posts" rel="nofollow noreferrer">http://127.0.0.1:8000/auth/posts</a>".</p>
  </blockquote>
  
  <p>however it shows 5 empty divs like the following</p>
  
  <p><a href="https://i.stack.imgur.com/oUJx8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oUJx8.png" alt="enter image description here"></a></p>
  
  <p>main.js</p>
  
  <pre><code>$http.get('/auth/posts').then(function(data){
      $scope.myposts = data;
  
  });
  </code></pre>
  
  <p>PostController</p>
  
  <pre><code>   public function getPosts()
      {
  
          $posts = Post::all();
          return json_encode($posts);
      }
  </code></pre>
  
  <p>Route</p>
  
  <p><code>Route::get('auth/posts', 'HomeController@getPosts');</code></p>
  
  <p>the html file</p>
  
  <pre><code>&lt;div id="mypost" class="col-md-8 panel-default" ng-repeat="post in myposts"&gt;
      &lt;div id="eli-style-heading" class="panel-heading"&gt;&lt;% post.title %&gt;&lt;/div&gt;
          &lt;div class="panel-body panel"&gt;
              &lt;figure&gt;
                  &lt;p&gt; &lt;% post.body %&gt;&lt;/p&gt;
  
              &lt;/figure&gt;
          &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>