feat(core): expose ViewRef
as ChangeDetectorRef
closes #12722 This is helpful when manually dirty checking embedded views.
This commit is contained in:

committed by
Victor Berchet

parent
9f7d32a326
commit
1b5384ee54
2
tools/public_api_guard/core/index.d.ts
vendored
2
tools/public_api_guard/core/index.d.ts
vendored
@ -1000,7 +1000,7 @@ export declare enum ViewEncapsulation {
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare abstract class ViewRef {
|
||||
export declare abstract class ViewRef extends ChangeDetectorRef {
|
||||
destroyed: boolean;
|
||||
abstract onDestroy(callback: Function): any;
|
||||
}
|
||||
|
Reference in New Issue
Block a user