ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'true'. Current value: 'false'

0

Thiserrorhappenswhenacallofaneventonblur()ismadeinthecomponent.ts:

  • Errorprocedure:

Whenperformingarecord,insertingdatainthefirstCODEfield,withonly1digit,itaccessesaOnBlur()event,whichverifiesthatthesamecodeenteredisgreaterthan0,withtheexpressioninTs:resultado.total>0,ifso,itdisplaysamessagesayingthatthecodealreadyexistsandyouwanttochangeit.Atthispointitpresentstheerrorintheconsole.Couldsomeonetellmehowtofixthiserror.

Thecomponenttemplatelookslikethis:

    
asked by anonymous 19.09.2018 / 16:19

0 answers