Why Change detection is triggered inside 'OnInit' even if i set ChangeDetectionStrategy to OnPush?

前端 未结 0 1783
不思量自难忘°
不思量自难忘° 2021-01-05 12:52
import {
  AfterViewInit,
  ChangeDetectionStrategy,
  Component,
  OnInit,
  VERSION
} from "@angular/core";

@Component({
  selector: "my-app",         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题