NAGASREE
NAGASREE

Reputation: 374

How to change Angular favIcon in Angular 10

I have tried all options specified in the link How to change Angular CLI favicon

The image favicon is not coming.

I made my image 32*32Ppx size and replaced it in src and tried and also tried keeping it in assests.

In angular.json I modified like this

"assets": [ "src/favicon.png", "src/assets" ],

In index.html

The title is loaded as shown in the attached image.

enter image description here

Is there something I have to do in angular 10?

Regards,

Nagasree.

Upvotes: 0

Views: 3843

Answers (2)

Sanjay
Sanjay

Reputation: 2493

Easy way to change favicon icon is replace existing with your own icon.

OR

You can change it by providing your favicon name in index.html and angular.json

Upvotes: 3

Derek Wang
Derek Wang

Reputation: 10193

You can set favicon on index.html file.

<link rel="icon" type="image/x-icon" href="favicon.png" />

Upvotes: 5

Related Questions