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

Asked

Viewed 228 times

0

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

This error happens when an event call is made onblur() in component.ts: inserir a descrição da imagem aqui

  • Error procedure:

When performing a registration, entering data in the first field CODE, with only 1 digit, it accesses an event OnBlur(), that checks whether that same typed code is greater than 0, with the expression on the Ts: resultado.total > 0, if so, it displays a message saying that the code already exists and if you want to change it. At this point it presents the error in the console. Could someone tell me how to fix this mistake.

inserir a descrição da imagem aqui

The component template is found this way: inserir a descrição da imagem aqui

  • Please post the code instead of images

  • https://pt.meta.stackoverflow.com/questions/5483/manual-de-como-n%C3%83o-fazer-perguntas/5485#5485

  • face would not be easier vc by one (Charge)="function" would be better and your input would get cleaner

  • face puts a change... and a release of true or false to the condition you want... hangs the button... and ready nothing mto difficult n.. (change)="function($Event.target)"

  • Thanks Willian, I will try to make this change and inform you later the feedback. Thank you!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.