MCPcopy Create free account
hub / github.com/angular/components / selected

Method selected

src/material/chips/chip-listbox.ts:117–120  ·  view source on GitHub ↗

The array of selected chips inside the chip listbox.

()

Source from the content-addressed store, hash-verified

115
116 /** The array of selected chips inside the chip listbox. */
117 get selected(): MatChipOption[] | MatChipOption {
118 const selectedChips = this._chips.toArray().filter(chip => chip.selected);
119 return this.multiple ? selectedChips : selectedChips[0];
120 }
121
122 /** Orientation of the chip list. */
123 @Input('aria-orientation') ariaOrientation: 'horizontal' | 'vertical' = 'horizontal';

Callers

nothing calls this directly

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected