Angular 18 Assets Folder

Angular 18 Assets Folder

Starting with angular 18 version, there is not "assets" folder. if you need to use assets such as images in your project, you simply need to place them in the public folder and not in the assets folder.

For example, if you have a coder.jpeg image in your public folder, you can use it in your Angular template as follows:

<img src="coder.jpeg" alt="">

  • Date: