Fix for services

This commit is contained in:
piotrpekala7 2020-11-09 13:50:24 +01:00
parent 1b96d94384
commit 75dd47afac
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,9 @@
import { Injectable, EventEmitter } from "@angular/core"; import { Injectable, EventEmitter } from "@angular/core";
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
@Injectable() @Injectable({
providedIn: 'root'
})
export class MapSettingsService { export class MapSettingsService {
public isScrollDisabled = new Subject<boolean>(); public isScrollDisabled = new Subject<boolean>();
public isMapLocked = new Subject<boolean>(); public isMapLocked = new Subject<boolean>();

View File

@ -9,7 +9,9 @@ export interface Settings {
console_command: string; console_command: string;
} }
@Injectable() @Injectable({
providedIn: 'root'
})
export class SettingsService { export class SettingsService {
static DEFAULTS: Settings = { static DEFAULTS: Settings = {
crash_reports: true, crash_reports: true,