1.0.33 • Published 5 years ago

sfx-form-builder v1.0.33

Weekly downloads
41
License
-
Repository
-
Last release
5 years ago

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);
}

...