GithubHelp home page GithubHelp logo

cwspear / angular-form-errors-directive Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 4.0 437 KB

A directive for AngularJS that displays a nice list of errors for a form.

Home Page: http://cwspear.github.io/angular-form-errors-directive

License: MIT License

CSS 5.52% JavaScript 94.48%

angular-form-errors-directive's People

Contributors

cwspear avatar razvanz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

angular-form-errors-directive's Issues

Custom html template by default

What about a "template" option in FormErrorsOptionsProvider to change default html template without using every time the directive "errors-tmpl"?
I think I can make a pr if it helps.
McGio

Bind nice name does not work

Hi,
I need to bind nice name to angular expression instead of using static name like the following,
nice-name="{{ctrl.getTitle(emp)}}"
the nice name changed in the html code, but the initial value still displays in the error message "Name in emp1 is required".

Is there any way to change "emp1" in the error message when the user fill form name?

Bug "Too much recursion"

There is a bug caused by a weak check using recursion to list all child forms errors in the same form-errors panel.
We have encountered this because of angular-xeditable but I'm sure it's not the only case that can occur.
The problem is simple: this directive search child forms between props not starting with dollar "$", but xeditable put some internal props starting with "_" which breaks the recursion. To solve this problem I've made a fork checking if the value of the property is an object before recursing.

accept nested forms

if you have a form inside a form(using ng-form, for example), form errors show just the name of the form instead of each field of that form.

character len mismatch

when I put a single char in the first name field but it requires 5, there should be 4 "a" chars in "waaaay" so I know how many more to add.

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.