search

Home  >  Q&A  >  body text

ng2 image address wrong

I have the following directory

Insert this code (direct child element of body) into index.html in the picture

<img src="images/tel.png" alt="">

But the image address displayed is wrong...

The scaffolding created by angular-cli is used. Started by ng serve. There is no webpack.config.js file under the project

阿神阿神2790 days ago592

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-19 10:42:09

    Resolved.

    You must put the pictures in a directory called assets.

    This request is really unreasonable.

    reply
    0
  • Cancelreply