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:
Igor Minar 2016-08-12 15:56:40 -07:00 committed by Vikram Subramanian
parent f84c3fdc5f
commit 3329977ec9
3 changed files with 1 additions and 30 deletions

View File

@ -14,7 +14,7 @@
export * from './src/metadata'; export * from './src/metadata';
export * from './src/util'; export * from './src/util';
export * from './src/di'; 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_ID, PACKAGE_ROOT_URL, PLATFORM_INITIALIZER, APP_BOOTSTRAP_LISTENER} from './src/application_tokens';
export {APP_INITIALIZER, ApplicationInitStatus} from './src/application_init'; export {APP_INITIALIZER, ApplicationInitStatus} from './src/application_init';
export * from './src/zone'; export * from './src/zone';

View File

@ -143,29 +143,6 @@ export function getPlatform(): PlatformRef {
return isPresent(_platform) && !_platform.destroyed ? _platform : null; 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 * 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 * has exactly one platform, and services (such as reflection) which are common

View File

@ -398,12 +398,6 @@ export interface ContentChildrenMetadataFactory {
}): ContentChildrenMetadata; }): 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 */ /** @experimental */
export declare function createPlatform(injector: Injector): PlatformRef; export declare function createPlatform(injector: Injector): PlatformRef;