Coding task · Angular course · Module 2: Components

Practice: Component Communication

@Input() receives data from the parent, @Output() with EventEmitter sends events to the parent. In Angular 17+ you can also use input() and output() as functions.

Task

Complete the @Input decorator for the warrior's name and the @Output decorator for the attack event.