/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility. import { makeStateKey as makeStateKeyFromCore, TransferState as TransferStateFromCore } from '@angular/core'; /** * Create a `StateKey` that can be used to store value of type T with `TransferState`. * * Example: * * ``` * const COUNTER_KEY = makeStateKey('counter'); * let value = 10; * * transferState.set(COUNTER_KEY, value); * ``` * * @publicApi * @deprecated `makeStateKey` has moved, please import `makeStateKey` from `@angular/core` instead. */ // The below is a workaround to add a deprecated message. export const makeStateKey = makeStateKeyFromCore; // The below type is needed for G3 due to JSC_CONFORMANCE_VIOLATION. export const TransferState = TransferStateFromCore; export { bootstrapApplication, BrowserModule, createApplication, platformBrowser, provideProtractorTestingSupport } from './browser'; export { Meta } from './browser/meta'; export { Title } from './browser/title'; export { disableDebugTools, enableDebugTools } from './browser/tools/tools'; export { By } from './dom/debug/by'; export { REMOVE_STYLES_ON_COMPONENT_DESTROY } from './dom/dom_renderer'; export { EVENT_MANAGER_PLUGINS, EventManager } from './dom/events/event_manager'; export { HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule } from './dom/events/hammer_gestures'; export { DomSanitizer } from './security/dom_sanitization_service'; export { provideClientHydration, withNoDomReuse, withNoHttpTransferCache } from './hydration'; export * from './private_export'; export { VERSION } from './version'; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm0tYnJvd3Nlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BsYXRmb3JtLWJyb3dzZXIvc3JjL3BsYXRmb3JtLWJyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsbUdBQW1HO0FBQ25HLE9BQU8sRUFBQyxZQUFZLElBQU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