feat(core): allow custom selector when bootstrapping components (#15668)

- fixes #7136

PR Close #15668
This commit is contained in:
Christoph Krautz
2017-03-31 16:37:20 +02:00
committed by Miško Hevery
parent cb384e8ed3
commit 900a88b15d
3 changed files with 42 additions and 7 deletions

View File

@ -131,7 +131,7 @@ export declare abstract class ApplicationRef {
readonly abstract isStable: Observable<boolean>;
readonly abstract viewCount: number;
abstract attachView(view: ViewRef): void;
abstract bootstrap<C>(componentFactory: ComponentFactory<C> | Type<C>): ComponentRef<C>;
abstract bootstrap<C>(componentFactory: ComponentFactory<C> | Type<C>, rootSelectorOrNode?: string | any): ComponentRef<C>;
abstract detachView(view: ViewRef): void;
abstract tick(): void;
}