Apuntes
Sin título
Contenido del apunte (1)
Página 1
The error message you provided indicates that there is a typo in your HTML template file "registrar-producto.component.html". The event binding on line 3 `(ngSunit)="onSumit()"` references a method `onSumit()`, but it seems that the correct method name is `onSubmit()`.
To resolve this issue, you should update the event binding to use the correct method name. Here's the corrected line:
```html
<form (ngSubmit)="onSubmit()">
```
Make sure to also update the corresponding method name in your TypeScript file "registrar-producto.component.ts" to match the corrected event binding in the template.
Once you've made these changes, the error should be resolved, and the `onSubmit()` method will be correctly invoked when the form is submitted.
If you have any further questions, please let me know.
Información
- Descripción
- Apunte sobre Sin título, creado por limber MZ el 05/07/2023.
- Creado por
- limber MZ
- Visitas
- 1
- Valoración