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
136 stars 36 forks source link

ng data binding #21

Open AhSem opened 8 years ago

AhSem commented 8 years ago

Hi Uttesh,

The following line works fine, where post.name is a $scope variable.

However, if I replace the $scope variable with a $scope function, it doesn't work.

Is it a bug or limitation? Anyway I can tweak to achieve the second method?

Thank you, Sem

uttesh commented 8 years ago

@AhSem thanks, Could you please elaborate, create the codepen with your issue that will help to understand the issue.

startappsolution commented 7 years ago

Dynamic data not showing.. Means when i want to display {{userdata.first_name}} it shows U only. Not shown the 1st character of that userdata.first_name.

uttesh commented 7 years ago

@startappsolution looks like your code is having bug, because that is very basic scope level issue, nothing do with ngletteravatar, check is your scope is having proper value.

for the dynamic data following will help.

this issue is addressed and resolved in the previous release, issue https://github.com/uttesh/ngletteravatar/issues/14 and added latest codepen you can test there http://codepen.io/uttesh/pen/akqJYK.

use

dynamic

attribute.