debugElement.injector.get(ChangeDetectorRef); // So, I am spying directly on the prototype. const detectChangesSpy = spyOn(changeDetectorRef.constructor.
確定! 回上一頁