My app structure is like:
index.html
main.ts
app
|--main.component.html
|--main.component.ts
|--app.module.ts
|--note.png
... etc
I want to use the note.png in main.component.html which is under the same folder.
I tried <img src="note.png"/> and <img src="./note.png"/>, but the picture is not shown.
The browser goes to /note.png to search for the picture.
Is there any good way to locate the resource using relative path?
I cannot use because I may have many pages under different folders, their base href are different.
style="background-image: url(note.png); "