Git Product home page Git Product logo

angularjs-forms-article's Introduction

Yearofmoo Forms Article Code

The code here is a demo repo showcasing some of the advanced form features in AngularJS 1.3.

The main features in the example are:

  • The validators pipeline.
  • Asynchronous validation via $asyncValidators.
  • Nested & Repeated Forms.
  • ngMessages and multi-level error messages.

To learn more about this code and how forms work in AngularJS please visit the article below:

http://yom.nu/ng-forms-post

Live Demo

There is also a live web demo of this. Click the link below to see for yourself:

http://yom.nu/ng-forms-demo

Installation

  1. Install NodeJS v0.10.26 or higher with NPM 1.4.4
  2. Install MongoDB and create a database called yom-forms.
  3. Clone the repo git clone [email protected]:yearofmoo-articles/AngularJS-Forms-Article.git.
  4. Run npm install in the cloned repo directory.

Running the website

  1. Make sure to install everything as per instructions above.
  2. Run node web.js.
  3. Open a browser to http://localhost:8888.

angularjs-forms-article's People

Contributors

matsko avatar patrickjs 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  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  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  avatar  avatar

angularjs-forms-article's Issues

emails array doesn't appear to be updating it's binding

First off, thanks for such a well written explanation, really helped out :)

When looking at the emails part of the form it looks like it's not updating the form.data.emails array.
Is it possibly because of the binding is referencing a primitive instead of a objects property eg, ng-model="reminder" instead of ng-model="aEmailObj.value" or am I being a bit of a newb and missing something obvious?

Label and min-value mis-match

The label for the input is Only even digits between 10 and 100 are allowed, however the min attribute is set to 20.

According to the label a value of 12 would make the form valid, which is actually an invalid number according to the min attribute.

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.