ng-file-input

ngModel directive for file inputs
Homepage:
0 people use it

ng-file-input

ngModel directive for file inputs

Installation

Install with bower
Add script to HTML
Import in your module definition

And you're done :)

How to use

Create a file input and add the ng-model attribute to it html <input type="file" ng-model="file"> "file" will be the selected File object.

You can also use the mutiple attribute html <input type="file" ng-model="files" multiple> In this case, files will be an (native) array of Files.

comments powered by Disqus
This page was last updated about 2 years ago.