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

Method remove

src/dev-app/chips/chips-demo.ts:113–120  ·  view source on GitHub ↗
(person: Person)

Source from the content-addressed store, hash-verified

111 }
112
113 remove(person: Person): void {
114 const index = this.people.indexOf(person);
115
116 if (index >= 0) {
117 this.people.splice(index, 1);
118 this.announcer.announce(`Removed ${person.name}`);
119 }
120 }
121
122 edit(person: Person, event: MatChipEditedEvent): void {
123 if (!event.value.trim().length) {

Callers 1

editMethod · 0.95

Calls 1

announceMethod · 0.45

Tested by

no test coverage detected