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

Class Emitter

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

Source from the content-addressed store, hash-verified

597
598 it('should check parent OnPush components when child directive on a template emits event', async () => {
599 @Directive({
600 selector: '[emitter]',
601 })
602 class Emitter {
603 @Output() event = new EventEmitter<string>();
604
605 ngOnInit() {
606 setTimeout(() => {
607 this.event.emit('new message');
608 });
609 }
610 }
611
612 @Component({
613 selector: 'my-app',

Callers

nothing calls this directly

Calls 2

DirectiveClass · 0.90
OutputInterface · 0.90

Tested by

no test coverage detected