# ng-bootstrap-fileupload-angular

> Angular Bootstrap File Upload

Latest version **0.1.8** (published 2020-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng-bootstrap-fileupload-angular
pnpm add ng-bootstrap-fileupload-angular
yarn add ng-bootstrap-fileupload-angular
bun add ng-bootstrap-fileupload-angular
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2020-02-10 |
| First published | 2020-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 154.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Danilo Meneses |
| Maintainers | danilo1233 |
| Keywords | Angular, file upload, FileUpload, bootstrap |

## Links

- npm: https://www.npmjs.com/package/ng-bootstrap-fileupload-angular
- Repository: https://github.com/danilomx/ng-bootstrap-fileupload-angular
- Homepage: https://github.com/danilomx/ng-bootstrap-fileupload-angular#readme
- Issues: https://github.com/danilomx/ng-bootstrap-fileupload-angular/issues
- npm.io page: https://npm.io/package/ng-bootstrap-fileupload-angular

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads
- [@modern-js/plugin-swc](https://npm.io/package/@modern-js/plugin-swc.md) — 3.4K weekly downloads

## Recent versions

- 0.1.8 (latest) — 2020-02-10
- 0.1.7 — 2020-02-10
- 0.1.6 — 2020-02-10
- 0.1.5 — 2020-02-10
- 0.1.4 — 2020-02-10
- 0.1.3 — 2020-02-10
- 0.1.2 — 2020-02-10
- 0.1.1 — 2020-02-10
- 0.1.0 — 2020-02-10
- 0.0.9 — 2020-02-08
- 0.0.8 — 2020-02-08
- 0.0.7 — 2020-02-08
- 0.0.6 — 2020-02-07
- 0.0.5 — 2020-02-07
- 0.0.4 — 2020-02-07
- … 3 more at https://npm.io/package/ng-bootstrap-fileupload-angular/versions

## README

# ng-bootstrap-fileupload-angular

# Angular File Upload

[![npm](https://img.shields.io/npm/v/ng-bootstrap-fileupload-angular.svg?maxAge=2592000?style=flat-square)](https://www.npmjs.com/package/ng-bootstrap-fileupload-angular)
[![npm](https://img.shields.io/npm/dm/ng-bootstrap-fileupload-angular.svg)](https://www.npmjs.com/package/ng-bootstrap-fileupload-angular)
![npm](https://img.shields.io/npm/dt/ng-bootstrap-fileupload-angular)

**This package supports Angular 8+**

Description

---

This fileupload is responsive design, so feel free to try it in your desktops, tablets and mobile devices.

## Dependencies
[bootstrap ^4.0.0](https://www.npmjs.com/package/bootstrap)

## Live Demo
[https://ng-bootstrap-fileupload-angular.stackblitz.io](https://stackblitz.com/edit/ng-bootstrap-fileupload-angular)

## How to Use

1.  Install with [npm](https://www.npmjs.com):`npm install ng-bootstrap-fileupload-angular --save`

2.  Add NgBootstrapFileuploadAngularModule to your **@NgModule** like example below

    ```typescript
    import { BrowserModule } from "@angular/platform-browser";
    import { NgModule } from "@angular/core";

    import { AppComponent } from "./app.component";
    import { FormsModule, ReactiveFormsModule } from "@angular/forms";
    import { CommonModule } from "@angular/common";

    import { NgBootstrapFileuploadAngularModule } from "ng-bootstrap-fileupload-angular";

    @NgModule({
      declarations: [AppComponent],
      imports: [
        BrowserModule,
        FormsModule,
        ReactiveFormsModule,
        NgBootstrapFileuploadAngularModule,
        CommonModule
      ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule {}
    ```

3.  Add your input into **form** like example below

    ```html
    <form>
      <div [formGroup]="formGroup">
        <ng-bootstrap-fileupload-angular
            previewUrl="https://raw.githubusercontent.com/danilomx/ng-bootstrap-fileupload-angular/master/src/assets/user.png"
            showPreview="true" formControlName="FileUp"></ng-bootstrap-fileupload-angular>
      </div>
    </form>
    ```

4.  Connect to your __component__

    ```typescript
    import { Component, OnInit } from "@angular/core";
    import { FormGroup, FormControl, Validators } from "@angular/forms";

    @Component({
      selector: "app-root",
      templateUrl: "./app.component.html",
      styleUrls: ["./app.component.scss"]
    })
    export class AppComponent implements OnInit {
      title = "FileUp";
      formGroup: FormGroup;

      ngOnInit() {
        this.formGroup = new FormGroup({
          FileUp: new FormControl(null, {
            validators: [Validators.required]
          })
        });
      }
    }
    ```

License
-------
* License: MIT

Author
-------
**Danilo Meneses Loaisiga**

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