(person: Person)
| 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) { |