Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

form-level ngModelOptions #7212

Closed
Closed
@JeroMiya

Description

@JeroMiya

ngModelOptions is a great feature, but I'd love to be use ngModelOptions on a form element, and have those options inherited by default for each field of the form. I often have a set of fields in a form that should all have the same ngModelOptions, but in the current implementation I have to specify ngModelOptions for each field individually. If one were to specify ngModelOptions at the form level, I could avoid repeating myself. It should still be possible to override those form-level options by specifying ngModelOptions for a particular field.

Also, perhaps a service or provider should allow the default ngModelOptions values to be specified globally? So the option inheritance would would be: global options -> form options -> field options.

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