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:

  1. this
  2. .attacked
  3. .emit
  4. (damage);