@trootech/generate-dynamic-forms v1.0.6
GenerateDynamicForms
This library was generated with Angular CLI version 14.1.0.
Install
npm install @trootech/generate-dynamic-forms --save
Dependencies
Bootstrap
and @angular/material
packages are a required dependency for the form.
npm install bootstrap --save
npm install @angular/material --save
Setup
Step 1:
Import bootstrap and angular material css in angular.json
file.
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
"src/styles.scss"
],
Step 2: Add GenerateDynamicFormsModule to app NgModule, make sure you have BrowserModule as well.
@NgModule({
imports: [
BrowserModule,
GenerateDynamicFormsModule,
],
exports: [],
declarations: [
AppComponent
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Use
Pass the form api url and get submit form response from submitFormData event. if you don't have apis of it you can refer Form generate api and web projects section.
<app-generate-dynamic-forms [formUrl]="url" (submitFormData)="formData($event)"></app-generate-dynamic-forms>
Form generate api and web projects
These projects are to create new forms, update existing forms and check the entries for that form.
Running unit tests
Run ng test generate-dynamic-forms
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.