Complete the code to import the EventEmitter class.
import { Component, [1] } from '@angular/core';
The EventEmitter class is imported from @angular/core to create custom events.
Complete the code to declare an output property named 'notify' using the @Output decorator.
@Output() [1] = new EventEmitter<string>();The output property must be named notify to match the event name.
Fix the error in emitting the event with the message 'Hello'.
this.notify.[1]('Hello');
The emit method is used to send the event to the parent component.
Fill both blanks to declare an output property 'update' that emits numbers.
@Output() [1] = new [2]<number>();
The property name is update and it must be an instance of EventEmitter with a number type.
Fill all three blanks to emit a boolean value 'true' from the output property 'status'.
this.[1].[2]([3]);
The output property is status, the method to send events is emit, and the value emitted is true.