Git Product home page Git Product logo

Comments (4)

slavafomin avatar slavafomin commented on July 19, 2024

Hello @tarik81!

Thank you for your interest in this module and for your bug-report.

Starting from the version 2.0.0 the module is using a more robust way to initialize he master value of the ngModel. It is introduced in this commit. You can see that the initialization flag is now used instead of the typeof comparison.

You can see it in the changelog:

#8: "Doesn't work when bound object member isn't set" (thanks to Chris Yates). We are now using a more robust way to initialize master value (initialization flag).

I'm sorry for the inconvinience it may caused you. However, it can be a backward-incompatible change, but it is introduced in the major update, so this is prefectly fine with the SemVer specification. I will update the changelog to outline this issue for other migrating users.

Thank you!

from angular-input-modified.

slavafomin avatar slavafomin commented on July 19, 2024

Considering your use case I will recommend to fetch the data in the resolve stage of your routing. The best approach is to always initialize the form data synchronously with the controller execution (i.e. without a delay).

If my answer solved your issue - please consider to close it. If you have any other questions - I will be glad to assist you. Cheers!

from angular-input-modified.

slavafomin avatar slavafomin commented on July 19, 2024

I've updated the Changelog and also added a section to the README on the topic of form initialization, please see it here: https://github.com/betsol/angular-input-modified/blob/master/readme.md#form-initialization.

from angular-input-modified.

tarik81 avatar tarik81 commented on July 19, 2024

That solves my issue, thank you :)

from angular-input-modified.

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.