refactor(core): Removed depricated lockRunMode (#10763)
BREAKING CHANGE: previously deprecated lockRunMode was removed; see deprecation notice for migration instructions.
This commit is contained in:
parent
87fe47737a
commit
2eb4ee8393
|
@ -14,7 +14,7 @@
|
|||
export * from './src/metadata';
|
||||
export * from './src/util';
|
||||
export * from './src/di';
|
||||
export {createPlatform, assertPlatform, disposePlatform, getPlatform, coreBootstrap, coreLoadAndBootstrap, PlatformRef, ApplicationRef, enableProdMode, lockRunMode, isDevMode, createPlatformFactory} from './src/application_ref';
|
||||
export {createPlatform, assertPlatform, disposePlatform, getPlatform, coreBootstrap, coreLoadAndBootstrap, 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';
|
||||
|
|
|
@ -46,17 +46,6 @@ export function enableProdMode(): void {
|
|||
_devMode = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Locks the run mode of Angular. After this has been called,
|
||||
* it can't be changed any more. I.e. `isDevMode()` will always
|
||||
* return the same value.
|
||||
*
|
||||
* @deprecated This is a noop now. {@link isDevMode} automatically locks the run mode on first call.
|
||||
*/
|
||||
export function lockRunMode(): void {
|
||||
console.warn('lockRunMode() is deprecated and not needed any more.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether Angular is in development mode. After called once,
|
||||
* the value is locked and won't change any more.
|
||||
|
|
|
@ -782,9 +782,6 @@ export declare class KeyValueDiffers {
|
|||
/** @experimental */
|
||||
export declare const LOCALE_ID: OpaqueToken;
|
||||
|
||||
/** @deprecated */
|
||||
export declare function lockRunMode(): void;
|
||||
|
||||
/** @experimental */
|
||||
export declare class ModuleWithComponentFactories<T> {
|
||||
componentFactories: ComponentFactory<any>[];
|
||||
|
|
Loading…
Reference in New Issue