mode_edit codeAPI / @angular/platform-browserStateKeylinktype-alias 试验性的A type-safe key to use with TransferState.type StateKey<T> = string & { __not_a_string: never; };说明linkExample:const COUNTER_KEY = makeStateKey<number>('counter'); let value = 10; transferState.set(COUNTER_KEY, value);