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:
Tobias Bosch
2016-11-04 11:58:06 -07:00
committed by Victor Berchet
parent 9de76ebfa5
commit 9f7d32a326
4 changed files with 149 additions and 29 deletions

View File

@ -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;
}