Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors are not being applied to alphabets #24

Open
Purus opened this issue May 29, 2016 · 4 comments
Open

Colors are not being applied to alphabets #24

Purus opened this issue May 29, 2016 · 4 comments

Comments

@Purus
Copy link

Purus commented May 29, 2016

I am using the below code to have the colors for the alphabets.

<ng-letter-avatar class="pic" height="45" width="45" alphabetcolors="customColors" data="{{rangoli.userId.displayname}}" charCount="2" shape="round"></ng-letter-avatar>

But the colors are always the default one. Anything wrong here?

The color codes are below:

  $scope.customColors = ["#D93A37", "#5A8770", "#5A8770", "#5A8770", "#5A8770", "#5A8770", "#5A8770", "#5A8770", "#5C9BBC", "#F5888D",
    "#9A89B5", "#407887", "#9A89B5", "#5A8770", "#D33F33", "#A2B01F", "#F0B126", "#0087BF", "#F18636", "#0087BF", "#B2B7BB", "#72ACAE",
    "#9C8AB4", "#5A8770", "#EEB424", "#407887"
  ];
@uttesh
Copy link
Owner

uttesh commented May 29, 2016

@Purus Thanks,
Its working fine, this is the code pen

@Purus
Copy link
Author

Purus commented Jun 3, 2016

I could not make it work in the ionic app. :(

@uttesh
Copy link
Owner

uttesh commented Jun 4, 2016

@Purus oh, I did not get any issue with a ionic app i have implemented its worked charm. ionic is just angularjs framework on codova plugin it should work, may be your device browser is having some issue check in other device.thanks

@uttesh
Copy link
Owner

uttesh commented Jun 4, 2016

@Purus ngletteravatar having a ionic version also which is bit old school code, not updated with latest changes that work's as well. http://uttesh.com/ionic-letteravatar/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants