Giter Club home page Giter Club logo

Comments (8)

hueitan avatar hueitan commented on May 12, 2024

Opps

Thanks @gilad1987 I got your point.

Here's the error cause
https://github.com/huei90/angular-validation/blob/master/src/directive.js#L173

The scope.$on('something') doesn't unqiue that's why cause your problem

How do you add the random number ? Could you give me a PR ?

from angular-validation.

gilad1987 avatar gilad1987 commented on May 12, 2024

sorry, what is PR ?

from angular-validation.

gilad1987 avatar gilad1987 commented on May 12, 2024

just add:
in line 194: $scope.$broadcast(k + 'submit' + form[k].index, idx++);
in line 437:
ctrl.index = Math.random();
scope.$on(ctrl.$name + 'submit' + ctrl.index, function (event, index)

from angular-validation.

hueitan avatar hueitan commented on May 12, 2024

Then how do you fix by adding a random number ?

PR is pull request

from angular-validation.

hueitan avatar hueitan commented on May 12, 2024

🍻 @gilad1987

That's cool.

You try to google what's PR, and if you don't mind give me a PR to angular-validation repo.

Otherwise i will do it by myself.

Thanks !

from angular-validation.

gilad1987 avatar gilad1987 commented on May 12, 2024

At the moment I can not, I'll try later

Thank you, great module

from angular-validation.

hueitan avatar hueitan commented on May 12, 2024

Sure 👍

from angular-validation.

hueitan avatar hueitan commented on May 12, 2024

@gilad1987 I have updated.

Thanks for this issue 🍻

from angular-validation.

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.