ExpressionChangedAfterItHasBeenCheckedError Explained

前端 未结 26 2026
慢半拍i
慢半拍i 2020-11-22 14:46

Please explain to me why I keep getting this error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.

Obviously,

26条回答
  •  生来不讨喜
    2020-11-22 15:52

    For my issue, I was reading github - "ExpressionChangedAfterItHasBeenCheckedError when changing a component 'non model' value in afterViewInit" and decided to add the ngModel

    
    

    It fixed my issue, I hope it helps someone.

提交回复
热议问题