MCPcopy Index your code
hub / github.com/angular/angular / Emitter

Class Emitter

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

Source from the content-addressed store, hash-verified

626
627 it('should check parent OnPush components when child directive on a template emits event', fakeAsync(() => {
628 @Directive({
629 selector: '[emitter]',
630 standalone: false,
631 })
632 class Emitter {
633 @Output() event = new EventEmitter<string>();
634
635 ngOnInit() {
636 setTimeout(() => {
637 this.event.emit('new message');
638 });
639 }
640 }
641
642 @Component({
643 selector: 'my-app',

Callers

nothing calls this directly

Calls 2

DirectiveClass · 0.90
OutputInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…