# ng-filedrop

> file drop directive for angular

Latest version **1.0.0** (published 2016-07-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install ng-filedrop
pnpm add ng-filedrop
yarn add ng-filedrop
bun add ng-filedrop
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-07-15 |
| First published | 2016-07-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | ymyang |
| Maintainers | ymyang |
| Keywords | file, drop, drag, angular |

## Links

- npm: https://www.npmjs.com/package/ng-filedrop
- Repository: https://github.com/ymyang/ng-filedrop
- Homepage: https://github.com/ymyang/ng-filedrop#readme
- Issues: https://github.com/ymyang/ng-filedrop/issues
- npm.io page: https://npm.io/package/ng-filedrop

## Dependencies (3)

- [gulp](https://npm.io/package/gulp.md) ^3.9.0
- [gulp-uglify](https://npm.io/package/gulp-uglify.md) ^1.4.2
- [gulp-ext-replace](https://npm.io/package/gulp-ext-replace.md) ^0.2.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-07-15

## README

# ng-fileDrop
file drop directive for angular

# 使用

```javascript

<script src="./angular.min.js"></script>
<script src="../dist/ng-fileDrop.min.js"></script>

<script>

  window.ondragover = function(e) {
    e.preventDefault();
    return false;
  };
  window.ondrop = function(e) {
    e.preventDefault();
    return false;
  };

  angular.module('app', ['ng-fileDrop']).controller('AppCtrl', function($scope, $log) {

    $scope.ondrop = function(files) {
      $log.debug('ondrop:', files);
    };

  });
</script>

```

---
_Source: https://npm.io/package/ng-filedrop · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
