How to add an image to angular?

I try

<img src="aperture-8x.png"> 

The image itself is at the root. Does not see

  • one
    /aperture-8x.png , the path must be relative to the component - Komdosh
  • I threw in the directory with the component, put a slash. Restarted angular. It did not help - MDmitry_
  • four
    and does not help, the images should be in the assets folder, and the path /assets/image.png - overthesanity
  • helped image was displayed - MDmitry_

0