Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
angularjs-file-model
Advanced tools
AngularJS directive to support NgModel for HTML input file types
AngularJS directive to support NgModel for HTML input file types
You can directly clone/download here
git clone https://github.com/sibiraj-s/angularjs-file-model.git
or use cdn
Minified:
//unpkg.com/angularjs-file-model@latest/fileModel.min.js
Pretty Printed:
//unpkg.com/angularjs-file-model@latest/fileModel.js
or
Install via Package managers such as npm or yarn
npm install angularjs-file-model --save
# or
yarn add angularjs-file-model
Import the modules required for angularjs-file-model.
<script src="angular/angular.min.js"></script>
<script src="../fileModel.min.js"></script>
add angularjsFileModel
dependency to the module
angular.module('myApp', ['angularjsFileModel'])
and in your html
<input type="file" ng-model="files" file-model ng-change="onFileSelect()">
or
<input type="file" ng-model="files" file-model as-file ng-change="onFileSelect()">
as-file
will bind the file object to the ng-model without it only plain object with file properties will bind to ng-model
FAQs
AngularJS directive to support NgModel for HTML input file types
We found that angularjs-file-model demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.