填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

WORKER_APP_LOCATION_PROVIDERS

The PlatformLocationproviders that should be added when the Locationis used in a worker context.

已弃用: platform-webworker is deprecated in Angular and will be removed in version 10

const WORKER_APP_LOCATION_PROVIDERS: ({ provide: typeof PlatformLocation; useClass: typeof WebWorkerPlatformLocation; useFactory?: undefined; multi?: undefined; deps?: undefined; } | { provide: InjectionToken<(() => void)[]>; useFactory: (platformLocation: WebWorkerPlatformLocation, zone: NgZone) => () => Promise<...>; multi: boolean; deps: (typeof Pla...;
      
      const WORKER_APP_LOCATION_PROVIDERS: ({ provide: typeof PlatformLocation; useClass: typeof WebWorkerPlatformLocation; useFactory?: undefined; multi?: undefined; deps?: undefined; } | { provide: InjectionToken<(() => void)[]>; useFactory: (platformLocation: WebWorkerPlatformLocation, zone: NgZone) => () => Promise<...>; multi: boolean; deps: (typeof Pla...;