Coder Social home page Coder Social logo

Comments (2)

johannesjo avatar johannesjo commented on July 30, 2024

Hello there! Thanks for reporting your issue.

I haven't thought about a solution which uses ng-model-options yet. If you have an idea, I'm all ears. For now you can change the validation template from:

 <ul class="list-unstyled validation-errors"
        ng-show="field.$invalid && (field.$touched || field.$dirty || form.$triedSubmit)">

to

 <ul class="list-unstyled validation-errors"
        ng-show="field.$invalid && (field.$touched || form.$triedSubmit)">

When it comes to async validators I'm not sure though. Actually I think, that this issue might be more of an issue with the underlying ng-messages. What would be super-helpful though, would be another form on the example-page, which uses a fake-async-validator. To be honest, I just wrote a test-case for async validators, but I haven't tested them out in a real browser with ng-fab-form.

Another super-helpful thing would be some sort of show-case for all those functionalities which can be achieved by just editing the validations-template. This is all basic angular form stuff, but I think many people are not aware about how most of it works.

You don't have to provide a pull request of course. Having feedback about how people use the module and in what problems they run into is really valuable knowledge to me. But let me say that you don't have to be shy. You can't break anything and PRs are a great way to get a code review ;)

from ng-fab-form.

johannesjo avatar johannesjo commented on July 30, 2024

Well the issue is not with ng-fab-form as it works fine. You need to make sure that your 'blur' is an actual string-reference, e.g.:

 <form name="formname">
    <input type="text"
           required
           ng-model="testBlur"
           ng-model-options="{updateOn:'blur'}">
</form>

Which works as expected.

from ng-fab-form.

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.