Giter VIP home page Giter VIP logo

Comments (13)

uttesh avatar uttesh commented on July 4, 2024 1

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.

uttesh avatar uttesh commented on July 4, 2024

@quocnguyen could you please put you issue related sample code in codepen which will help to understand the issue.. thanks.

from ngletteravatar.

andre-morassut avatar andre-morassut commented on July 4, 2024

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.

uttesh avatar uttesh commented on July 4, 2024

@andre-morassut Thanks for the codepen i will look into that issue.

from ngletteravatar.

uttesh avatar uttesh commented on July 4, 2024

@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.

andre-morassut avatar andre-morassut commented on July 4, 2024

@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.

uttesh avatar uttesh commented on July 4, 2024

@andre-morassut could you please provide me the codepen if you have any that will help me to analyze the issue. thanks.

from ngletteravatar.

andre-morassut avatar andre-morassut commented on July 4, 2024

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.

motasay avatar motasay commented on July 4, 2024

@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.

andre-morassut avatar andre-morassut commented on July 4, 2024

Thanks @motasay :)

from ngletteravatar.

uttesh avatar uttesh commented on July 4, 2024

@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.

andre-morassut avatar andre-morassut commented on July 4, 2024

@uttesh OK, great!

from ngletteravatar.

sean-stanley avatar sean-stanley commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.