How to change Angular CLI favicon

后端 未结 30 1593
谎友^
谎友^ 2020-12-07 16:32

How can I change the default favicon that is set by the Angular CLI?

I have tried many things, but it always shows the Angular logo as the favicon, even though I hav

30条回答
  •  独厮守ぢ
    2020-12-07 16:35

    1.Check your link tag on index.html file that it should look like this.

    2.Check file name of favicon.ico in /src directory.

    3.Rerun Angular with ng serve and refresh application.

    4.If it doesn't show (or something look like it buffer old favicon.ico file). try to refresh path of favicon again to load favicon.ico file (eg. refresh yourdomain.com/favicon.ico)

提交回复
热议问题