Event handler parameters in Angular template

You can pass parameters to event handler methods. Let's pass a string, for example:

app/app.component.html<button (click)="show('test')">
  button
</button>

In the component class method, we set the parameter, indicating its string type:

app/app.component.tsexport class AppComponent {
  public show(arg: string): void {
    alert(arg);
  }
}
Задание 1

When you click the button, pass two numbers as a method parameter. In the method, output the sum of these numbers to the console.