Angular 18 Assets Folder

00:00
BACK TO HOME

Angular 18 Assets Folder

10xTeam June 24, 2024 1 min read

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="">

Join the 10xdev Community

Subscribe and get 8+ free PDFs that contain detailed roadmaps with recommended learning periods for each programming language or field, along with links to free resources such as books, YouTube tutorials, and courses with certificates.

Audio Interrupted

We lost the audio stream. Retry with shorter sentences?