title: Angular 4 display images
body: <p>I am trying to add an image with angular 4 ... but without success </p>
  
  <p>My folders :</p>
  
  <p>src</p>
  
  <pre><code>- app
      - job
          job.component.css
          job.component.html
          job.component.specs.ts
          job.component.ts
  
  - assets
      - images
          play-3.png
  
  favicon.ico
  </code></pre>
  
  <p>What I have tried :</p>
  
  <pre><code> &lt;a href="ta_page" &gt;&lt;img src="../assets/images/play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="../../assets/images/play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="../../../assets/images/play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="/assets/images/play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="./assets/images/play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="/assets/images/play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="assets/images/play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="./assets/images/play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="assets\images\play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="images/play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="favicon.ico"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="./play-3.png"/&gt;&lt;/a&gt;
   &lt;a href="ta_page" &gt;&lt;img src="app/assets/images/play-3.png"/&gt;&lt;/a&gt;              
   &lt;img ng-src="assets/images/play-3.png"&gt;
   &lt;img ng-src="images/play-3.png"&gt;
  </code></pre>
  
  <p>error : 
   <pre>Cannot GET /play-3.png</pre></p>
  
  <p>If I put favicon it works ....</p>
  
  <p>I tried to put my images into /src, src/assets, src/assets/images ...</p>
  
  <p>Edit :</p>
  
  <p>my .angular-cli.json</p>
  
  <pre><code>  "apps": [
  {
    "root": "src",
    "outDir": "dist",
    "assets": [
      "assets",
      "favicon.ico"
    ],
  </code></pre>
  
  <p>Solution :
  - Restart ng serve after pgn upload</p>