angular/packages/core/schematics/migrations/transfer-state
Matthieu Riegler 965ce5a8c5 feat(migrations): Schematics for TransferState, StateKey and makeStateKey migration. (#49594)
These 3 classes have been moved from platform-browser to core by #49563

PR Close #49594
2023-10-10 13:12:36 -07:00
..
BUILD.bazel feat(migrations): Schematics for TransferState, StateKey and makeStateKey migration. (#49594) 2023-10-10 13:12:36 -07:00
index.ts feat(migrations): Schematics for TransferState, StateKey and makeStateKey migration. (#49594) 2023-10-10 13:12:36 -07:00
README.md feat(migrations): Schematics for TransferState, StateKey and makeStateKey migration. (#49594) 2023-10-10 13:12:36 -07:00
utils.ts feat(migrations): Schematics for TransferState, StateKey and makeStateKey migration. (#49594) 2023-10-10 13:12:36 -07:00

The following symbols were moved from @angular/platform-browser to @angular/core:

  • TransferState
  • makeStateKey
  • StateKey

This migration updates symbol imports to use @angular/core.

Before

import { TransferState, makeStateKey, StateKey } from '@angular/platform-browser';

After

import { TransferState, makeStateKey, StateKey } from '@angular/core';