2

Source code in git

Live Demo

I want to develop Angular8 drag and drop form builder functionality in my angular application In the above git code it is developed using pure formio

My requirement is I want to integrate this angular drag and drop functionality in my already existing angular project.

I am struck to integrate formio, Please help me How can I strat the integration.

is there any tutorial available with explanation?

1 Answer 1

3

first you need to install formio in your project

npm install --save angular-formio

then import formioModule in your project module

import { FormioModule } from 'angular-formio';
@NgModule({
    imports: [ BrowserModule, CommonModule, FormioModule ],
    declarations: [ AppComponent ],
    bootstrap: [ AppComponent ]
})
export class AppModule { }

after that if you want to build a form using formio then call formio-builder in your component and save form json in database by calling rest api.

<form-builder [form]="{
  components: []
}"></form-builder>

and if you want to show your form in component then use formion renderer

<formio src='https://examples.form.io/example'></formio>

let me know if you need any help.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.