I'm encountering an issue related to $event in Angular 11. Can someone assist me in troubleshooting this problem? $event error in angular Error message : Error Message
Error: src/app/recipes/recipes.component.html:4:26 - error TS2739: Type 'Event' is missing the following properties from type 'Recipe': name, description, imagePath
4 (recipeWasSelected)="selectedRecipe=$event"></app-recipe-list>
~~~~~~~~~~~~~~~~~~~~~
src/app/recipes/recipes.component.ts:6:16
6 templateUrl: './recipes.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component RecipesComponent.
Error: src/app/shopping-list/shopping-list.component.html:3:64 - error TS2345: Argument of type 'Event' is not assignable to parameter of type 'Ingridient'.
Type 'Event' is missing the following properties from type 'Ingridient': name, amount
3 <app-shopping-edit (ingridientAdded)=onIngridientAdded($event)></app-shopping-edit>
~~~~~~
src/app/shopping-list/shopping-list.component.ts:6:16
6 templateUrl: './shopping-list.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component ShoppingListComponent.
CODE LINK: