From 3329977ec9e95087d74208b0474a74586b236864 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 12 Aug 2016 15:56:40 -0700 Subject: [PATCH] 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. --- modules/@angular/core/index.ts | 2 +- modules/@angular/core/src/application_ref.ts | 23 -------------------- tools/public_api_guard/core/index.d.ts | 6 ----- 3 files changed, 1 insertion(+), 30 deletions(-) diff --git a/modules/@angular/core/index.ts b/modules/@angular/core/index.ts index 406cf8476b..0f53f30281 100644 --- a/modules/@angular/core/index.ts +++ b/modules/@angular/core/index.ts @@ -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'; diff --git a/modules/@angular/core/src/application_ref.ts b/modules/@angular/core/src/application_ref.ts index cd94c2fb0c..fdbefcaa25 100644 --- a/modules/@angular/core/src/application_ref.ts +++ b/modules/@angular/core/src/application_ref.ts @@ -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( - componentFactory: ComponentFactory, injector: Injector): ComponentRef { - 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, injector: Injector): Promise> { - 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 diff --git a/tools/public_api_guard/core/index.d.ts b/tools/public_api_guard/core/index.d.ts index 6f7026b850..0c7bdeb3fb 100644 --- a/tools/public_api_guard/core/index.d.ts +++ b/tools/public_api_guard/core/index.d.ts @@ -398,12 +398,6 @@ export interface ContentChildrenMetadataFactory { }): ContentChildrenMetadata; } -/** @deprecated */ -export declare function coreBootstrap(componentFactory: ComponentFactory, injector: Injector): ComponentRef; - -/** @deprecated */ -export declare function coreLoadAndBootstrap(componentType: Type, injector: Injector): Promise>; - /** @experimental */ export declare function createPlatform(injector: Injector): PlatformRef;