uttesh / ngu-utility

The utility components,service,directives and pipes for Angular.
https://github.com/uttesh/ngu-utility
MIT License
10 stars 6 forks source link

Dynamic parameter not working #3

Open Dunos opened 7 years ago

Dunos commented 7 years ago

I'm trying to dynamically update the user profile image but even with the avatar-dynamic="true" parameter it does not work.

My code looks something like this:

<a id="avatar" *ngIf="userProfile$ | async as profile">
    <ngu-letter-avatar [avatar-dynamic]="true" [avatar-data]="profile.image || profile.name || profile.email" [avatar-custom-bg-color]="avatarColor" [avatar-font-family]="'sans-serif'" [avatar-font-size]="25" avatar-shape="round" avatar-width="35" avatar-height="35" [matMenuTriggerFor]="profilePanel"></ngu-letter-avatar>
</a>

Tried with only one parameter as data, but got the same result.

usamaa commented 6 years ago

i am facing the same issue, avatar-data attribute changes but avatar letter not changing

any one can help

usamaa commented 6 years ago

@Dunos did you get any solution for this issue

uttesh commented 6 years ago

I'll address this issue in the weekend, bit busy in other work, thanks

Dunos commented 6 years ago

@usamaa had to disable until fixed, also because it's not working on Angular 5

usamaa commented 6 years ago

thanks @Dunos and @uttesh

usamaa commented 6 years ago

@uttesh have you address this issue?