- Include 'angular-file-upload.js' script to the html file.
- Include module dependency: angular.module('myApp', ['ngFileUpload']) ...
- Insert div with file-upload class in your controller in html.
- "file-upload" directive will automatically create $scope.formObject variable in your controller.
-
Add data to the form if needed: $scope.formObject.setData({ name: '', email: '' }) ...
Submit the form by calling: $scope.formObject.submit() ...
BorisDutkin/angularjs-fileupload
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|