How to use ngx-filepond - 5 common examples

To help you get started, we’ve selected a few ngx-filepond examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xmlking / ngx-starter-kit / libs / experiments / src / lib / experiments.module.ts View on Github external
// Registering plugins
import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
import FilePondPluginFileValidateSize from 'filepond-plugin-file-validate-size';
import FilePondPluginImagePreview from 'filepond-plugin-image-preview';

import { ScrollingModule } from '@angular/cdk/scrolling';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { MatCardModule } from '@angular/material/card';
import { MatGridListModule } from '@angular/material/grid-list';
import { MatPaginatorModule } from '@angular/material/paginator';
import { MatTableModule } from '@angular/material/table';
import { MatListModule } from '@angular/material/list';

registerPlugin(FilePondPluginFileValidateType, FilePondPluginFileValidateSize, FilePondPluginImagePreview);

const matModules = [
  MatCardModule,
  MatListModule,
  MatTableModule,
  MatPaginatorModule,
  MatGridListModule,
  MatButtonModule,
  MatIconModule,
  DragDropModule,
  ScrollingModule,
];

@NgModule({
  imports: [
    SharedModule,
github FileNation / FileNation / src / app / app.module.ts View on Github external
import { RouterModule, PreloadAllModules, Routes } from '@angular/router';

// import your router file
import { ROUTES } from './app.routes';

import { IpfsService } from './ipfs.service';

import { AppComponent } from './app.component';
import { InputComponent } from './input/input.component';

// import filepond module
import { FilePondModule, registerPlugin } from 'ngx-filepond';

// import and register filepond file type validation plugin
import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
registerPlugin(FilePondPluginFileValidateType);

import { LocationStrategy, HashLocationStrategy } from '@angular/common';
import { HomeComponent } from './home/home.component';
import { DragZoneComponent } from './dragzone/dragzone.component';
import { TransferComponent } from './transfer/transfer.component';

@NgModule({
  declarations: [
    AppComponent,
    InputComponent,
    HomeComponent,
    DragZoneComponent,
    TransferComponent,
  ],
  imports: [
    BrowserModule,
github shindesharad71 / Anstagram / client / src / app / settings / settings.module.ts View on Github external
import { CommonModule } from '@angular/common';
import { SettingsRoutingModule } from './settings-routing.module';

import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { library } from '@fortawesome/fontawesome-svg-core';
import { fas } from '@fortawesome/free-solid-svg-icons';
library.add(fas);

import { FilePondModule, registerPlugin } from 'ngx-filepond';
import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
import FilePondPluginImagePreview from 'filepond-plugin-image-preview';
import FilePondPluginImageExifOrientation from 'filepond-plugin-image-exif-orientation';
import FilePondPluginImageCrop from 'filepond-plugin-image-crop';
import FilePondPluginImageTransform from 'filepond-plugin-image-transform';
// tslint:disable-next-line: max-line-length
registerPlugin(FilePondPluginFileValidateType, FilePondPluginImagePreview, FilePondPluginImageExifOrientation, FilePondPluginImageCrop, FilePondPluginImageTransform);


import { SettingsComponent } from './settings.component';
import { SettingsPageComponent } from './settings-page/settings-page.component';
import { ChangeProfilePicComponent } from './settings-page/change-profile-pic/change-profile-pic.component';


@NgModule({
  declarations: [SettingsComponent, SettingsPageComponent, ChangeProfilePicComponent],
  imports: [
    CommonModule,
    SettingsRoutingModule,
    FontAwesomeModule,
    FilePondModule
  ]
})
github shindesharad71 / Anstagram / client / src / app / core / core.module.ts View on Github external
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HTTP_INTERCEPTORS } from '@angular/common/http';

import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { library } from '@fortawesome/fontawesome-svg-core';
import { fas } from '@fortawesome/free-solid-svg-icons';
library.add(fas);

import { FilePondModule, registerPlugin } from 'ngx-filepond';
import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
import FilePondPluginImagePreview from 'filepond-plugin-image-preview';
import FilePondPluginImageExifOrientation from 'filepond-plugin-image-exif-orientation';
import FilePondPluginImageCrop from 'filepond-plugin-image-crop';
import FilePondPluginImageTransform from 'filepond-plugin-image-transform';
// tslint:disable-next-line: max-line-length
registerPlugin(FilePondPluginFileValidateType, FilePondPluginImagePreview, FilePondPluginImageExifOrientation, FilePondPluginImageCrop, FilePondPluginImageTransform);

import { AuthService } from './services/auth/auth.service';
import { InterceptorService } from './services/interceptor.service';
import { LoaderComponent } from './components/loader/loader.component';
import { LoaderService } from './components/loader/loader.service';
import { AuthGuardService } from './guards/auth-guard.service';
import { NotificationComponent } from './components/notification/notification.component';
import { HttpService } from './services/http/http.service';

@NgModule({
  declarations: [LoaderComponent, NotificationComponent],
  imports: [
    CommonModule,
    HttpClientModule,
    FormsModule,
    ReactiveFormsModule,
github xmlking / ngx-starter-kit / libs / dashboard / src / lib / dashboard.module.ts View on Github external
import { MatSelectModule } from '@angular/material/select';
import { MatSidenavModule } from '@angular/material/sidenav';

import { AppProfileComponent } from './components/app-profile/app-profile.component';

// Registering plugins
import FilePondPluginFileEncode from 'filepond-plugin-file-encode';
import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
import FilePondPluginFileValidateSize from 'filepond-plugin-file-validate-size';
import FilePondPluginImagePreview from 'filepond-plugin-image-preview';
import FilePondPluginImageCrop from 'filepond-plugin-image-crop';
import FilePondPluginImageResize from 'filepond-plugin-image-resize';
import FilePondPluginImageTransform from 'filepond-plugin-image-transform';
import FilePondPluginImageExifOrientation from 'filepond-plugin-image-exif-orientation';

registerPlugin(
  FilePondPluginFileEncode,
  FilePondPluginFileValidateSize,
  FilePondPluginFileValidateType,
  FilePondPluginImageExifOrientation,
  FilePondPluginImagePreview,
  FilePondPluginImageCrop,
  FilePondPluginImageResize,
  FilePondPluginImageTransform,
);

const matModules = [
  MatSidenavModule,
  MatCardModule,
  MatIconModule,
  MatButtonModule,
  MatInputModule,

ngx-filepond

A handy FilePond adapter component for Angular

MIT
Latest version published 11 months ago

Package Health Score

58 / 100
Full package analysis

Popular ngx-filepond functions