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

LuXDAmore/angular-file-trigger-change

Repository files navigation

angular-file-trigger-change @ ngFileTriggerChange

Angular Directive: trigger a change for input[type="file"].

Usage / Installation

  • Add 'ngFileTriggerChange' to your modules;
  • Add the Directive 'ng-file-trigger-change' to your html code;
  • You're ready.

Example

HTML

<input type="file" ng-model="vm.files" ng-change="vm.fileChanged()" ng-file-trigger-change accept="image/*" capture multiple />

Controller

vm.files = null; vm.changed = function() { window.console.log( vm.files ); // Output --> The FileList };

Releases

No releases published

Packages

No packages published