Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chenop/form-on-change
- Owner: chenop
- Created: 2015-02-24T07:21:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-08-07T13:34:32.000Z (over 6 years ago)
- Last Synced: 2024-11-08T06:15:30.933Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```