| 1266 | it('should clear event listeners when node is destroyed', () => { |
| 1267 | let calls = 0; |
| 1268 | @Component({ |
| 1269 | selector: 'cancel-button', |
| 1270 | template: '', |
| 1271 | }) |
| 1272 | class CancelButton { |
| 1273 | @Output() cancel = new EventEmitter<void>(); |
| 1274 | } |
| 1275 | |
| 1276 | @Component({ |
| 1277 | template: '<cancel-button *ngIf="visible" (cancel)="cancel()"></cancel-button>', |