#Demo https://dynamic-components.github.io/#/dynamic-forms/all
npm install @netiq/dynamic-forms#Demo
https://dynamic-components.github.io/#/dynamic-forms/all
#Simple Dynamic forms.
``import { Component, OnInit } from '@angular/core';
import { TextArea, Textbox } from 'dynamic-forms';
export class FormsComponent implements OnInit {
inputfields: any[] = [
new Textbox({
key: "Name",
label: "Name",
type: "text",
value: '',
required: true,
}),
new TextArea({
key: "Discription",
label: "Description",
type: "text",
value: '',
required: false,
})
];
submit(value: string) {
console.log(JSON.parse(value));
}
}
`
``
#module
`
import { DynamicFormModule } from 'dynamic-forms';
imports: [
DynamicFormModule
],
``