Skip to content

Unable to set value and disabled as default #42

@miladvafaeifard

Description

@miladvafaeifard
interface SimpleForm {
  firstName: string;
  lastName: string; 
}

const form = new TypedFormGroup<SimpleForm>({
  firstName: new TypedFormControl({ value: 'Adam', disabled: true }),
  lastName: new TypedFormControl({ value: 'Adam', disabled: true })
});

additionally, how possible to create a form definition structure in this case with { value: string, disabled: boolean } ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions