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

Method remove

src/material/chips/chip-grid.spec.ts:1174–1180  ·  view source on GitHub ↗
(chip: string)

Source from the content-addressed store, hash-verified

1172 chips = ['Chip 0', 'Chip 1', 'Chip 2'];
1173
1174 remove(chip: string) {
1175 const index = this.chips.indexOf(chip);
1176
1177 if (index > -1) {
1178 this.chips.splice(index, 1);
1179 }
1180 }
1181}
1182
1183@Component({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected