refactor(compiler): cleanups
This commit is contained in:
@ -56,7 +56,7 @@ export abstract class ComponentRef<C> {
|
||||
/**
|
||||
* The component type.
|
||||
*/
|
||||
get componentType(): Type<C> { return unimplemented(); }
|
||||
get componentType(): Type<any> { return unimplemented(); }
|
||||
|
||||
/**
|
||||
* Destroys the component instance and all of the data structures associated with it.
|
||||
@ -80,7 +80,7 @@ export class ComponentRef_<C> extends ComponentRef<C> {
|
||||
get instance(): C { return this._component; };
|
||||
get hostView(): ViewRef { return this._parentView.ref; };
|
||||
get changeDetectorRef(): ChangeDetectorRef { return this._parentView.ref; };
|
||||
get componentType(): Type<C> { return <any>this._component.constructor; }
|
||||
get componentType(): Type<any> { return <any>this._component.constructor; }
|
||||
|
||||
destroy(): void { this._parentView.detachAndDestroy(); }
|
||||
onDestroy(callback: Function): void { this.hostView.onDestroy(callback); }
|
||||
|
@ -322,7 +322,7 @@ export class DebugAppView<T> extends AppView<T> {
|
||||
}
|
||||
}
|
||||
|
||||
injectorGet(token: any, nodeIndex: number, notFoundResult: any): any {
|
||||
injectorGet(token: any, nodeIndex: number, notFoundResult?: any): any {
|
||||
this._resetDebug();
|
||||
try {
|
||||
return super.injectorGet(token, nodeIndex, notFoundResult);
|
||||
|
Reference in New Issue
Block a user