import { Component, OnInit } from '@angular/core' import { Uppy } from '@uppy/core' import Webcam from '@uppy/webcam' import Tus from '@uppy/tus' import GoogleDrive from '@uppy/google-drive' @Component({ selector: 'app-root', template: /* html */ `

Uppy Angular Example!

Inline dashboard

Modal Dashboard

Drag Drop Area

Progress Bar

`, styleUrls: [], }) export class AppComponent implements OnInit { title = 'angular-example' showInline = false showModal = false dashboardProps = { plugins: ['Webcam'], } dashboardModalProps = { target: document.body, onRequestCloseModal: (): void => { this.showModal = false }, } uppy = new Uppy({ debug: true, autoProceed: true }) ngOnInit(): void { this.uppy .use(Webcam) .use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' }) .use(GoogleDrive, { companionUrl: 'https://companion.uppy.io' }) } }