From 75dd47afacbe70cb76d7726f64482e67252137b7 Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Mon, 9 Nov 2020 13:50:24 +0100 Subject: [PATCH] Fix for services --- src/app/services/mapsettings.service.ts | 4 +++- src/app/services/settings.service.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/services/mapsettings.service.ts b/src/app/services/mapsettings.service.ts index 6b169ae0..ee6cf7f3 100644 --- a/src/app/services/mapsettings.service.ts +++ b/src/app/services/mapsettings.service.ts @@ -1,7 +1,9 @@ import { Injectable, EventEmitter } from "@angular/core"; import { Subject } from 'rxjs'; -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class MapSettingsService { public isScrollDisabled = new Subject(); public isMapLocked = new Subject(); diff --git a/src/app/services/settings.service.ts b/src/app/services/settings.service.ts index 2fc48050..8c287f97 100644 --- a/src/app/services/settings.service.ts +++ b/src/app/services/settings.service.ts @@ -9,7 +9,9 @@ export interface Settings { console_command: string; } -@Injectable() +@Injectable({ + providedIn: 'root' +}) export class SettingsService { static DEFAULTS: Settings = { crash_reports: true,