I created a new Angular app with:
ng new ...
And I can view the application with:
ng serve --open
I removed the default src/favicon.ico
and replaced it with src/favicon.png
. I also opened src/index.html
and changed the appropriate line to read:
<link rel="icon" type="image/png" href="favicon.png">
This doesn't seem to have worked. Issuing a GET request for /favicon.png
simply returns the content from src/index.html
. Restarting ng serve
makes no difference.
How can I make this file accessible to the application?