Comments (13)
Thanks guys for the hacks and support, made the changes in the library and added fix for this issue i.e. added 'dynamic
' attribute if that is set to true then data scope will be watched for the updates and on scope apply event trigger watch() will create the updated letter avatar.
from ngletteravatar.
@quocnguyen could you please put you issue related sample code in codepen which will help to understand the issue.. thanks.
from ngletteravatar.
Here is the code pen : http://codepen.io/andre-morassut/pen/QyqNdj
The first avatar is with a harcoded data attribute such as "U", the second one has its data attribute declared as Angular expression (eg. {{expression}}).
Two issues here :
- the second avatar is not displayed
- when typing in the input field, the second avatar is not changed
from ngletteravatar.
@andre-morassut Thanks for the codepen i will look into that issue.
from ngletteravatar.
@andre-morassut after analyzing the codepen its looks like angularjs 1.1.5 version isolation scope issue with directive, after changing the version from 1.1.5 to 1.1.6 its working fine without any changes
updated forked codepen http://codepen.io/anon/pen/obGdaw.
looks like no need to change the directive code if con't upgrade the angularjs version i will give patch ngletteravatar.js as fix.
from ngletteravatar.
@uttesh Thanks for your quick reply :)
Indeed, now the avatar is displayed on the first page load. But it seems that your fork still suffers from the main issue raised by @quocnguyen : when I type in the input field, the avatar won't change. Tested on Chrome 47, IE11, FF43. Do you reproduce this issue?
from ngletteravatar.
@andre-morassut could you please provide me the codepen if you have any that will help me to analyze the issue. thanks.
from ngletteravatar.
The issue can be reproduced with your updated forked codepen : http://codepen.io/anon/pen/obGdaw.
If you type in the input field, the avatar won't change.
from ngletteravatar.
@andre-morassut If you're in a hurry here's a hack that makes it work: http://codepen.io/anon/pen/WrJKoP
Thank you @uttesh for the plugin, it's fantastic!
from ngletteravatar.
Thanks @motasay :)
from ngletteravatar.
@motasay thanks for the hack fix. i will fix the issue once i'm done with my other library implementation.
@andre-morassut next release i will address this issue.
from ngletteravatar.
@uttesh OK, great!
from ngletteravatar.
My PR fixes this issue with very few lines of code. A codepen demo is here or just check out the code changes they should be easy to read.
http://codepen.io/anon/pen/xVxqwK?editors=1011
from ngletteravatar.
Related Issues (20)
- How to use custom set of colors? HOT 2
- Minified version? HOT 3
- npm version HOT 1
- First Name and last name... HOT 1
- Additional naming cases
- Does not display letters in phonegap/cordova on angular HOT 14
- ng data binding HOT 3
- Update NPM version HOT 1
- Option when we have an picture HOT 7
- Colors are not being applied to alphabets HOT 4
- couldn't change font family HOT 3
- New version JS
- v4.0.4 is missing dist/ngletteravatar.min.js file HOT 2
- Change textColor
- Angular 2 support? HOT 4
- image url in data doesn't work HOT 4
- Custom css like padding, margin won't work and dynamic="true" break everything
- Data element not working inside a modal view HOT 2
- Avatar is disappeared when using ui-router states HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngletteravatar.