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

Method remove

src/material/chips/chip.ts:329–334  ·  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

327 * Informs any listeners of the removal request. Does not remove the chip from the DOM.
328 */
329 remove(): void {
330 if (this.removable) {
331 this._hadFocusOnRemove = this._hasFocus();
332 this.removed.emit({chip: this});
333 }
334 }
335
336 /** Whether or not the ripple should be disabled. */
337 _isRippleDisabled(): boolean {

Callers 1

_handleKeydownMethod · 0.95

Calls 1

_hasFocusMethod · 0.95

Tested by

no test coverage detected