HaithemMosbahi / ngx-avatar

Universal avatar component for angular 2+ applications makes it possible to fetch / generate avatar from different sources
MIT License
238 stars 92 forks source link

Adding ability to disable src cache #124

Open arunes opened 3 years ago

arunes commented 3 years ago

Adding ability to disable src cache based on the #123

You can set the disable cache from the root config, it will work for all custom image avatars.

AvatarModule.forRoot({
  colors: avatarColors,
  disableSrcCache: true
})

It will add Math.random() to end of the image urls when set to true. console

Added new tests tests

Heatmanofurioso commented 2 years ago

Hi @arunes Would you mind if I took this change to my ported version of the library? Since the owner doesn't seem to be maintaining it anymore, I'm trying to maintain and keep up to date my own version of this library

arunes commented 2 years ago

Hi @arunes Would you mind if I took this change to my ported version of the library? Since the owner doesn't seem to be maintaining it anymore, I'm trying to maintain and keep up to date my own version of this library

Sure go ahead!