Revert "refactor(elements): remove unused imports and properties (#36114)"

This reverts commit 2ed66acdd9545238e0e79f006ac7ac98bea2fc45
because it is causing the side effects test to break on the
9.1.x branch.
This commit is contained in:
Kara Erickson 2020-05-20 11:06:52 -07:00
parent c8f0c3b637
commit 2c4cfa6f2c
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ const DESTROY_DELAY = 10;
export class ComponentNgElementStrategyFactory implements NgElementStrategyFactory {
componentFactory: ComponentFactory<any>;
constructor(component: Type<any>, injector: Injector) {
constructor(private component: Type<any>, private injector: Injector) {
this.componentFactory =
injector.get(ComponentFactoryResolver).resolveComponentFactory(component);
}

View File

@ -5,7 +5,7 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Injector} from '@angular/core';
import {ComponentFactory, Injector} from '@angular/core';
import {Observable} from 'rxjs';
/**