sfx-form-builder
v1.0.33
Published
Responsive form builder with bootstrap 4 compatibity + built on [Angular CLI](https://github.com/angular/angular-cli) version 7.3.8.
Downloads
59
Readme
Seamfix Form Builder
Responsive form builder with bootstrap 4 compatibity + built on Angular CLI version 7.3.8.
installation
npm install sfx-form-builder --save
Usage
On polyfills.ts add
(window as any)['global'] = window;
On app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { SfxFormBuilderModule } from 'sfx-form-builder';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
SfxFormBuilderModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
On your-component.component.html
<sfx-form-builder (formjson) = "getJson($event)"></sfx-form-builder>
{{formJson | json}}
Output
On your-component.component.ts
formJson: any;
...
getJson(ev) {
this.formjson = ev;
console.log(ev);
}
...