Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
update dependency
Browse files Browse the repository at this point in the history
publish to npm
add support for CommonJS.
  • Loading branch information
tiberiuzuld committed Dec 8, 2016
1 parent c32c5a8 commit cae8da1
Show file tree
Hide file tree
Showing 9 changed files with 4,310 additions and 2,854 deletions.
55 changes: 0 additions & 55 deletions .yo-rc.json

This file was deleted.

9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ The directive will call the callback function with a parameter object containing
bower install angular-auto-save-form --save
```

#### Install with npm
```bash
npm install angular-auto-save-form --save
```

Then add a `<script>` to your `index.html`:

```html
<script src="/bower_components/angular-auto-save-form/auto-save-form.js"></script>
<script src="bower_components/angular-auto-save-form/auto-save-form.js"></script>
```

Include 'autoSaveForm' as a dependency of your module like this:
Include 'angular-auto-save-form' as a dependency of your module like this:
```JavaScript
var module = angular.module("example", ["angular-auto-save-form"]);
```
Expand Down
11 changes: 8 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-auto-save-form",
"version": "1.2.0",
"version": "1.2.1",
"main": [
"dist/auto-save-form.js",
"dist/auto-save-form.css"
Expand All @@ -23,7 +23,13 @@
"url": "https://github.com/tiberiuzuld/angular-auto-save-form.git"
},
"description": "Angular auto save form changed inputs",
"keywords": "angular, angularjs, save, form, auto, debounce, changed fields",
"keywords": [
"angular",
"angularjs",
"auto save form",
"debounce",
"changed fields"
],
"authors": [
"Tiberiu Zuld"
],
Expand All @@ -38,7 +44,6 @@
".editorconfig",
".eslintrc",
".gitignore",
".yo-rc.json",
"gulpfile.js",
"karma.conf.js",
"protractor.conf.js"
Expand Down
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<md-tabs md-dynamic-height md-border-bottom md-stretch-tabs="always" class="flex-50">
<md-tab label="Auto Save">
<ng-form name="autoSaveForm" auto-save-form="vm.updateForm(controls, $event)" auto-save-form-debounce="500"
<ng-form name="autoSaveForm" auto-save-form="vm.updateForm(controls)" auto-save-form-debounce="500"
class="layout-column layout-padding">
<ng-form name="userNameForm" class="layout-column">
<md-input-container>
Expand Down
Loading

0 comments on commit cae8da1

Please sign in to comment.