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

Method compareWith

src/material/select/select.ts:464–466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

462 */
463 @Input()
464 get compareWith() {
465 return this._compareWith;
466 }
467 set compareWith(fn: (o1: any, o2: any) => boolean) {
468 if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
469 throw getMatSelectNonFunctionValueError();

Callers 3

_selectValueMethod · 0.45
ngOnInitMethod · 0.45
_setOptionsFromValuesMethod · 0.45

Calls 2

_initializeSelectionMethod · 0.95

Tested by

no test coverage detected