Angular UT报错Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError
有一个Angular的Component的单元测试代码,执行后fixture.detectChanges();就会报错Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value for 'showLoading': 'true'. Current value: 'false'. Find more at https://angular.io/errors/NG0100。
2024-04-18 1850 0