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();
}
相關文章
相關標籤/搜索