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

Method remove

src/material/chips/chip.ts:313–318  ·  view source on GitHub ↗

* Allows for programmatic removal of the chip. * * Informs any listeners of the removal request. Does not remove the chip from the DOM.

()

Source from the content-addressed store, hash-verified

311 * Informs any listeners of the removal request. Does not remove the chip from the DOM.
312 */
313 remove(): void {
314 if (this.removable) {
315 this._hadFocusOnRemove = this._hasFocus();
316 this.removed.emit({chip: this});
317 }
318 }
319
320 /** Whether or not the ripple should be disabled. */
321 _isRippleDisabled(): boolean {

Callers 1

_handleKeydownMethod · 0.95

Calls 1

_hasFocusMethod · 0.95

Tested by

no test coverage detected