ng2 image address wrong
阿神
阿神 2017-05-19 10:40:09
0
1
572

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

阿神
阿神

闭关修行中......

reply all(1)
过去多啦不再A梦

Resolved.

You must put the pictures in a directory called assets.

This request is really unreasonable.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template