uttesh / ngletteravatar

directive for the letter avatar for the given string like gmail, first letter of the given data will be the avatar .
http://uttesh.github.io/ngletteravatar/
MIT License
137 stars 36 forks source link

Error: [$compile:missingattr] Attribute 'alphabetcolors' of 'ngLetterAvatar' is non-optional and must be set! #36

Open pablorsk opened 7 years ago

pablorsk commented 7 years ago

Problem:

On AngularJS 1.6.6 is possible set strictComponentBindingsEnabled to true. If we do this, we receive this error on browser console:

Error: [$compile:missingattr] Attribute 'alphabetcolors' of 'ngLetterAvatar' is non-optional and must be set!

ngletteravatar has default values for alphabetcolors, then alphabetcolors can be optional.

screenshot376

alphabetcolors on projects with strictComponentBindingsEnabled(true) fixed