MCPcopy Create free account
hub / github.com/angular/angular / Emitter

Class Emitter

packages/core/test/acceptance/change_detection_spec.ts:614–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612
613 it('should check parent OnPush components when child directive on a template emits event', async () => {
614 @Directive({
615 selector: '[emitter]',
616 standalone: false,
617 })
618 class Emitter {
619 @Output() event = new EventEmitter<string>();
620
621 ngOnInit() {
622 setTimeout(() => {
623 this.event.emit('new message');
624 });
625 }
626 }
627
628 @Component({
629 selector: 'my-app',

Callers

nothing calls this directly

Calls 2

DirectiveClass · 0.90
OutputInterface · 0.90

Tested by

no test coverage detected