angular-smart-forms

Angular components for making HTML forms smart. Compatible with AngularJS 1.3.4+.

Live Demo

Why?

HTML5 forms are getting smarter. Let's help this process.

This project provides some directives to be applied on forms and form elements, to handle specific requirements not yet covered by native implementations.

Behaviours implemented:

All this work is based on the following assumptions:

Features

Components

Usage

Auto focus

<form name="ctrl.mainForm" wt-auto-focus>
...
</form>

Smart form

<form name="ctrl.mainForm" wt-smart-form>
...
</form>

ISO dates

<input type="date" wt-iso-date ng-model="ctrl.dateField">

Numeric input

<input type="number" wt-number ng-model="ctrl.numericField">

Installation

Bower

bower install angular-smart-forms --save

Application

HTML

<script type="text/javascript" src="release/angular-smart-forms.min.js"></script>

JavaScript

var app = angular.module('app', ['wt.smart']);

License

MIT