feat(core): add attachView
/ detachView
to ApplicationRef
This feature is useful to allow components / embedded views to be dirty checked if they are not placed in any `ViewContainer`. Closes #9293
This commit is contained in:

committed by
Victor Berchet

parent
9de76ebfa5
commit
9f7d32a326
3
tools/public_api_guard/core/index.d.ts
vendored
3
tools/public_api_guard/core/index.d.ts
vendored
@ -150,7 +150,10 @@ export declare class ApplicationModule {
|
||||
export declare abstract class ApplicationRef {
|
||||
componentTypes: Type<any>[];
|
||||
components: ComponentRef<any>[];
|
||||
viewCount: any;
|
||||
attachView(view: ViewRef): void;
|
||||
abstract bootstrap<C>(componentFactory: ComponentFactory<C> | Type<C>): ComponentRef<C>;
|
||||
detachView(view: ViewRef): void;
|
||||
abstract tick(): void;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user