Put in order · Angular course · Module 2: Components
Emitting an Event from the Child
Arrange the single-line tokens to emit an event with the damage: this.attacked.emit(damage);
Items to put in order
- .attacked
- this
- (damage);
- .emit
Show the answer
Correct order:
- this
- .attacked
- .emit
- (damage);