Skip to content

How to declare a form NgxSubFormRemapComponen? #274

@rlzdesenv

Description

@rlzdesenv

before I declared the component and extended NgxSubFormRemapComponent

export class ContribuinteFormComponent extends NgxSubFormRemapComponent<Pessoa, PessoaForm>

could you please an example of how to declare in the new way

    public form: NgxSubFormRemapComponent<Pessoa, PessoaForm>;

    constructor() {
        this.form = createForm<PessoaForm>(this, {
            formType: FormType.SUB,
            formControls: {
                tipo: new FormControl(null, Validators.required),
                fisica: new FormControl(null),
                juridica: new FormControl(null),
            },
        })
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions