angular / angular/components

Give compareWith object mapping for SelectionModel same that of mat Select

Open
#24,297 4 comments 2 reactions 0 assignees View on GitHub
area: material/select feature P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### Feature Description

It's hard to map the object's other properties in the select something in the list using SelectionModel
Please give a option to map the object's unique key to the selection like we have it for Mat Select using compareWith

### Use Case

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing SelectionModel and comparing its current selection behavior with Mat Select's compareWith option. Define how a unique object key should be supplied and verify that selection remains correct when object instances differ; done means the mapping option works for the stated object-selection use case and has coverage in the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.