#my app keeps showing the stock favicon

4 messages · Page 1 of 1 (latest)

atomic oasis
#

I'm using Angular 18. I have tried to diagnose the issue but everything has been in vain. I moved my favicon.ico to both /src/favicon.ico and /src/assets/favicon.ico and I have already mentioned the paths in my angular.json, however the stock "A" favicon keeps appearing.

shut heath
#

In Angular 18, by default you put assets in the public folder. So you want public/favicon.ico.

atomic oasis
#

Oh okay, I have replaced the favicon.ico to the one I want to use. However it is still not showing, if I inspect my page and click on the favicon icon, I get http://localhost:4200/favicon.ico

winged sail
#

Use previous advice with public folder. Index.html is outside angular context, it doesn't know angular.json