Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chenop/form-on-change

AngularJS ng-change like functionality for the entire form
https://github.com/chenop/form-on-change

Last synced: about 1 month ago
JSON representation

AngularJS ng-change like functionality for the entire form

Awesome Lists containing this project

README

        

## AngularJS ng-change like functionality for the entire form

Use Case: When given a form - we would like to call a method for every change in one of the forms fields.

For example: Update the server for each change in one of our fields.

the form-on-change directive support elements, boxes and elements.
by listening to the 'change' event so according to [JQuery documentation](http://api.jquery.com/change/):

> The change event is sent to an element when its value changes.
> This event is limited to input elements, textarea boxes and select elements. For select boxes, checkboxes, and radio buttons, the event is fired immediately when the user makes a selection with the mouse, but for the other element types the event is deferred until the element loses focus.

### Install
```
bower install form-on-change
```
### Usage
Add form-on-change.js to list of scripts:
```javascript

```

Add module dependency
```javascript
angular.module('your-app-name', ['chenop.form-on-change']);
```
In your HTML it should look something like that:
```html


```