Thiserrorhappenswhenacallofaneventonblur()
ismadeinthecomponent.ts:
- Errorprocedure:
Whenperformingarecord,insertingdatainthefirstCODEfield,withonly1digit,itaccessesaOnBlur()
event,whichverifiesthatthesamecodeenteredisgreaterthan0,withtheexpressioninTs:resultado.total>0
,ifso,itdisplaysamessagesayingthatthecodealreadyexistsandyouwanttochangeit.Atthispointitpresentstheerrorintheconsole.Couldsomeonetellmehowtofixthiserror.
Thecomponenttemplatelookslikethis: