1

When adding an image by nodejs in Angular project's assets folder Angular needs a rebuild to show the image by path, how can I get images without a rebuild?

1 Answers1

2

I suppose that you are talking about ng serve and not actual deployment.

The assets are meant to be static updated at build time (ng build or ng serve).

I would upload the images to a different directory outside of angular and fetch them from there in your angular app as is described at this link here

Athanasios Kataras
  • 25,191
  • 4
  • 32
  • 61