Repro steps.
Remove the line
<link rel="icon" type="image/x-icon" href="favicon.ico">
from index.html
It still shows the default angular favicon. Also tried the above steps after clearing the browser cache and still the same issue.
Below browser are used to reproduced the issue:
Put your icon file into /public or /src/assets folder. This will make your icon visible to the browser. See the branch on Github.
For Angular 9
I created a favicon.png file in /src and dropped the image inside the file
In angular.json add the file to assets
"assets": [
"src/favicon.png"
]
<link rel="icon" type="image/x-icon" href="favicon.png">
You may need to clear your cache if you're using Chrome.
for Windows: CTRL F5
for Mac: CMD SHIFT R
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With