import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { FlexLayoutModule } from '@angular/flex-layout'; import { FormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { MatButtonModule, MatCardModule, MatCheckboxModule, MatIconModule, MatMenuModule, MatSelectModule, MatToolbarModule } from '@angular/material'; import { RouterModule } from '@angular/router'; // To include JsonSchemaFormModule after downloading from NPM, use this instead: // // import { JsonSchemaFormModule, NoFrameworkModule } from 'angular6-json-schema-form'; // // but replace "NoFrameworkModule" with the framework you want to use, // then import both JsonSchemaFormModule and the framework module, like this: // // imports: [ ... NoFrameworkModule, JsonSchemaFormModule.forRoot(NoFrameworkModule) ... ] import { AceEditorDirective } from './ace-editor.directive'; import { DemoComponent } from './demo.component'; import { DemoRootComponent } from './demo-root.component'; import { routes } from './demo.routes'; import { MaterialDesignFrameworkModule, Bootstrap4FrameworkModule, Bootstrap3FrameworkModule, NoFrameworkModule } from 'angular6-json-schema-form'; @NgModule({ declarations: [AceEditorDirective, DemoComponent, DemoRootComponent], imports: [ BrowserModule, BrowserAnimationsModule, FlexLayoutModule, FormsModule, HttpClientModule, MatButtonModule, MatCardModule, MatCheckboxModule, MatIconModule, MatMenuModule, MatSelectModule, MatToolbarModule, RouterModule.forRoot(routes), MaterialDesignFrameworkModule, Bootstrap4FrameworkModule, Bootstrap3FrameworkModule, NoFrameworkModule ], bootstrap: [DemoRootComponent] }) // Here, by loading 4 frameworks in JsonSchemaFormModule.forRoot(), the first, // `NoFrameworkModule`, will be set active by default. But any of the 4 can // be activated later by passing the framework's name to the // tag's `framework` input. The names of these 4 frameworks are: // 'no-framework' // 'material-design-framework', // 'bootstrap-3-framework' // 'bootstrap-4-framework' export class DemoModule { }