MCPcopy Create free account
hub / github.com/bitwarden/clients / error

Method error

libs/components/src/switch/switch.component.ts:158–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 }
157
158 get error(): [string, any] {
159 const errors = this.ngControl?.errors ?? {};
160 const key = Object.keys(errors)[0];
161 return [key, errors[key]];
162 }
163
164 // ControlValueAccessor functions
165 private notifyOnChange: (value: boolean) => void = () => {};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected