ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: ''. Current value: 'something'

//在子组件添加 ng-5.2.11
import { Component, ChangeDetectorRef } from '@angular/core'; constructor(private cdr: ChangeDetectorRef) { } ngAfterViewChecked(){ this.cdr.detectChanges(); }
posted @ 2019-07-23 20:27  进军码农  阅读(765)  评论(0编辑  收藏  举报