Skip to content

Add readonly to FormControl formstate #11447

Open
@Fank

Description

@Fank

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Currently there is a "disabled" flag which will disable the control, and also disable the validator.
But there also should be a "readonly" flag which do not disable the validator.

Current behavior

  • Does not exist -

Expected behavior

  • Explained above -

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Angular version: 2.0.0-rc.6
  • Browser: [all]
  • Language: [all]
  • Node (for AoT issues): node --version = 6.5.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions