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:
There is also a live web demo of this. Click the link below to see for yourself:
- Install NodeJS v0.10.26 or higher with NPM 1.4.4
- Install MongoDB and create a database called
yom-forms
. - Clone the repo
git clone git@github.com:yearofmoo-articles/AngularJS-Forms-Article.git
. - Run
npm install
in the cloned repo directory.
- Make sure to install everything as per instructions above.
- Run
node web.js
. - Open a browser to
http://localhost:8888
.