I am just starting to dive into the world of Angular and have been using YouTube tutorials as my guide. However, I have encountered an error in one of the examples provided. Below is the code snippet that is causing me trouble.
HTML
<input type="text" (keyup)="getVal($event.target.value)">
TypeScript
export class AppComponent {
title = 'test';
getVal(val: any)
{
console.log(val);
};
};
The Issue: