mat-select - Allow mat-option selected property to be settable
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
#### Bug, feature request, or proposal:
Feature request
#### What is the expected behavior?
To be able to set the mat-option selected property
#### What is the current behavior?
Currently the mat-option selected property is readonly and you have to programatically select options.
#### What is the use-case or motivation for changing an existing behavior?
Being able to bind to the selected property would be a cleaner implementation for a user versus having to do it manually, especially in cases where using cascading mat-select with multiple=true (harder to manage)
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.4.3
Material 2.0.0-beta.11
Windows 10
TypeScript - 2.5.2
All browsers
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia leggendo l’implementazione di mat-select e mat-option per capire come viene attualmente gestita la proprietà readonly selected. Conferma il comportamento di binding previsto per mat-option, inclusi i casi di mat-select concatenati con multiple=true. Il lavoro è completato quando selected può essere impostato o associato come richiesto senza interrompere il comportamento di selezione esistente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100