ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checke

//在子组件添加 ng-5.2.11import { Component, ChangeDetectorRef } from '@angular/core'; 
constructor(private cdr: ChangeDetectorRef) { }
ngAfterViewChecked(){
   this.cdr.detectChanges();
}
相关文章
相关标签/搜索