Coding task · Angular course · Module 2: Components

Practice: Property and Event Binding

Property binding uses square brackets [property], and event binding uses parentheses (event). Two-way binding combines both: [(ngModel)].

Task

Complete the code: add a property binding for [disabled] and an event binding for (click) on the attack button.