refactor(core): remove deprecated coreBootstrap and coreLoadAndBootstrap
BREAKING CHANGE: previously deprecated coreBootstrap and coreLoadAndBootstrap have been removed. Please follow deprecation instructions to migrate your code.
This commit is contained in:
parent
f84c3fdc5f
commit
3329977ec9
|
@ -14,7 +14,7 @@
|
|||
export * from './src/metadata';
|
||||
export * from './src/util';
|
||||
export * from './src/di';
|
||||
export {createPlatform, assertPlatform, destroyPlatform, getPlatform, coreBootstrap, coreLoadAndBootstrap, PlatformRef, ApplicationRef, enableProdMode, isDevMode, createPlatformFactory} from './src/application_ref';
|
||||
export {createPlatform, assertPlatform, destroyPlatform, getPlatform, PlatformRef, ApplicationRef, enableProdMode, isDevMode, createPlatformFactory} from './src/application_ref';
|
||||
export {APP_ID, PACKAGE_ROOT_URL, PLATFORM_INITIALIZER, APP_BOOTSTRAP_LISTENER} from './src/application_tokens';
|
||||
export {APP_INITIALIZER, ApplicationInitStatus} from './src/application_init';
|
||||
export * from './src/zone';
|
||||
|
|
|
@ -143,29 +143,6 @@ export function getPlatform(): PlatformRef {
|
|||
return isPresent(_platform) && !_platform.destroyed ? _platform : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shortcut for ApplicationRef.bootstrap.
|
||||
* Requires a platform to be created first.
|
||||
*
|
||||
* @deprecated Use {@link bootstrapModuleFactory} instead.
|
||||
*/
|
||||
export function coreBootstrap<C>(
|
||||
componentFactory: ComponentFactory<C>, injector: Injector): ComponentRef<C> {
|
||||
throw new BaseException('coreBootstrap is deprecated. Use bootstrapModuleFactory instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves the componentFactory for the given component,
|
||||
* waits for asynchronous initializers and bootstraps the component.
|
||||
* Requires a platform to be created first.
|
||||
*
|
||||
* @deprecated Use {@link bootstrapModule} instead.
|
||||
*/
|
||||
export function coreLoadAndBootstrap(
|
||||
componentType: Type<any>, injector: Injector): Promise<ComponentRef<any>> {
|
||||
throw new BaseException('coreLoadAndBootstrap is deprecated. Use bootstrapModule instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* The Angular platform is the entry point for Angular on a web page. Each page
|
||||
* has exactly one platform, and services (such as reflection) which are common
|
||||
|
|
|
@ -398,12 +398,6 @@ export interface ContentChildrenMetadataFactory {
|
|||
}): ContentChildrenMetadata;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare function coreBootstrap<C>(componentFactory: ComponentFactory<C>, injector: Injector): ComponentRef<C>;
|
||||
|
||||
/** @deprecated */
|
||||
export declare function coreLoadAndBootstrap(componentType: Type<any>, injector: Injector): Promise<ComponentRef<any>>;
|
||||
|
||||
/** @experimental */
|
||||
export declare function createPlatform(injector: Injector): PlatformRef;
|
||||
|
||||
|
|
Loading…
Reference in New Issue