Aug 28, 2017 · 1 min read
If you want to override only ‘changeDetection’, you can use:
TestBed.overrideComponent(TestComponent, {set:{changeDetection:ChangeDetectionStrategy.Default}}).createComponent(TestComponent);
If you want to override only ‘changeDetection’, you can use:
TestBed.overrideComponent(TestComponent, {set:{changeDetection:ChangeDetectionStrategy.Default}}).createComponent(TestComponent);