angular / angular/angular

Add readonly to FormControl formstate

Open
#11,447 115 comments 261 reactions 0 assignees View on GitHub
Accessibility area: forms feature feature: under consideration freq2: medium state: Needs Design
Dominant language
TypeScript
Stars
101k
Forks
27.5k
Avg merge
1d 19h
Merged PRs (30d)
288

Description

**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

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating Angular's FormControl form-state implementation and its existing disabled-state coverage; done means a readonly state is supported while validation remains active, without changing disabled behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.