Installation Guide - VladRG/NgFormGenerator GitHub Wiki

NgFormGenerator Wiki

Installation & dependencies

To install NgFormGenerator use the following command:

npm install --save vg-form-generator

Alongside vg-form-generator, the following dependencies will be installed.

npm install --save font-awesome
npm install --save @ng-bootstrap/ng-bootstrap
npm install --save bootstrap@^4.0.0

Furthermore, you need to add bootstrap and font-awesome into your project. Add the following import statements at the top of your app/styles.css file.

@import "~bootstrap/dist/css/bootstrap.min.css";
@import "~font-awesome/css/font-awesome.css";

Next you need to import the module into your app.module.ts.

import { VgFormGeneratorModule } from 'vg-form-generator';
// other import statements

@NgModule({
  declarations: [
    AppComponent
    // your other components
  ],
  imports: [
    BrowserModule,
    VgFormGeneratorModule
    // your other modules
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

I recommend you import the VgFormGeneratorModule into your AppSharedModule (if you follow this pattern) and then import the AppSharedModule into your AppModule.