MCPcopy Index your code
hub / github.com/angular/components / compareWith

Method compareWith

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

Source from the content-addressed store, hash-verified

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

Callers 3

_selectValueMethod · 0.45
ngOnInitMethod · 0.45
_setOptionsFromValuesMethod · 0.45

Calls 2

_initializeSelectionMethod · 0.95

Tested by

no test coverage detected