title: ng-src not showing image - AngularJS
body: <p>I am trying to ng-repeat a set of image paths but the images are not loading. Tried both ng-src and src, none works.</p>
  
  <p>HTML file:</p>
  
  <pre><code>&lt;div ng-app="homeIndexApp"&gt;
      &lt;div ng-controller="homeIndexController"&gt;
          &lt;div ng-repeat="x in pics"&gt;
               &lt;img ng-src="{{x.source}}"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>js file:</p>
  
  <pre><code>var homeIndex = angular.module('homeIndexApp', []);
  
  homeIndex.controller('homeIndexController', function ($scope) {
      $scope.pics = [{ source: 'images/slides/Slide4.png' },
          { source: 'images/slides/Slide5.png' },
          { source: 'images/slides/Slide1.png' },
          { source: 'images/slides/Slide2.png' },
          { source: 'images/slides/Slide3.png' }
      ];
  });
  </code></pre>
  
  <p>However, when I inspect element in my browser, I can hover over the src tag and see the image thumbnail:</p>
  
  <pre><code>&lt;img ng-src="images/slides/Slide4.png" src="images/slides/Slide4.png"&gt;
  </code></pre>
  
  <h3>Folder Setup: ASP.NET Core MVC</h3>
  
  <p><img src="https://i.stack.imgur.com/yoanH.jpg" alt="Folder Setup: ASP.NET Core MVC"></p>
  
  <p>Why don't they show up in the website? What is wrong with the codes?</p>