Skip to content

Commit 359b17c

Browse files
committed
Renamed module to just file-model (Fixes #2)
1 parent d9f4819 commit 359b17c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Add to your HTML files:
1717

1818
Now, inject to your application:
1919

20-
angular.module('myApp', ['angular-file-model']);
20+
angular.module('myApp', ['file-model']);
2121

2222
Ready to use in your controllers!:
2323

2424
`file.html`:
2525

26-
<input type='file' file-upload='fileModel'>
26+
<input type='file' file-model='fileModel'>
2727
<button type='button' ng-click='upload()'>Upload</button>
2828

2929
`controller.js:`

angular-file-model.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
(function () {
99
'use strict';
1010

11-
angular.module('angular-file-model', [])
11+
angular.module('file-model', [])
1212

1313
.directive('fileModel', [
1414
'$parse',

0 commit comments

Comments
 (0)