Code Monkey home page Code Monkey logo

Comments (6)

AlexMiniApps avatar AlexMiniApps commented on May 29, 2024

@moshe5745 Hi. ok. I will add the fix for that.

from angular-code-input.

AlexMiniApps avatar AlexMiniApps commented on May 29, 2024

@moshe5745 I have checked the current version of the lib and it works as expected. I have used the latest version '1.2.2'.
You can check it by yourself:

  1. Unpack the attached archive
    test-app-copy.zip

  2. From the project folder run npm install

  3. From the project folder run ng serve

In your code please check that the value is changed during different browser events loop. If the changing will be in the same event loop the last value for the current loop will be used. Also please ensure that you use the latest lib version

Example 1 with the same evet loop:

... some sync  code ...
this.code = 1234
... some sync  code ...
this.code = 5555

The last value will be shown in the component - 5555

Example 2 with the different event loops:

... some sync code ...
this.code = 1234
... some sync  code ...
this.code = 5555
... some sync  code ...
setTimeout(() => this.code = 7777) // will be called async in the next loop

The last value for the latest event of the browser will be shown in the component - 7777

from angular-code-input.

moshe5745 avatar moshe5745 commented on May 29, 2024

I downloaded and ran your code and its working properly.
Maybe its because i use ionic app, and not just angular.

from angular-code-input.

AlexMiniApps avatar AlexMiniApps commented on May 29, 2024

@moshe5745 I have also checked the lib on the Ionic. Please check the attachment, it is the Ionic project.
blank-copy.zip

from angular-code-input.

AlexMiniApps avatar AlexMiniApps commented on May 29, 2024

@moshe5745 Have you solved the issue?

from angular-code-input.

AlexMiniApps avatar AlexMiniApps commented on May 29, 2024

Closing as not reproducible

from angular-code-input.

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.