import { NgModule } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { FormsModule , ReactiveFormsModule } from '@angular/forms' ; import { RouterModule , Routes } from '@angular/router' ; import { NglFileUploadModule } from 'ng-lightning' ; import { NglDemoExampleModule } from 'src/app/example/example.module' ; import { DemoFileUploadComponent } from './file-upload.component' ; import { DemoFileUploadBasic } from './examples/basic' ; const routes = [ { path : '' , component : DemoFileUploadComponent } , ] ; @ NgModule ( { imports : [ CommonModule , FormsModule , ReactiveFormsModule , RouterModule . forChild ( routes ) , NglFileUploadModule , NglDemoExampleModule , ] , declarations : [ DemoFileUploadComponent , DemoFileUploadBasic , ] , } ) export class NglDemoFileUploadModule { }