Now all that is needed is to make it ready for strict compiling. Removed eslint-plugin-prettier as it is not recommended and causes errors for both eslint and prettier Bumped to v8.0.0
17 lines
427 B
TypeScript
17 lines
427 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { Resolve } from '@angular/router';
|
|
import { Observable } from 'rxjs/internal/Observable';
|
|
|
|
import { SettingsService } from './settings.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class LockInformationResolver implements Resolve<any> {
|
|
constructor(private ser: SettingsService) {}
|
|
|
|
resolve(): Observable<any> {
|
|
return this.ser.getLockInformation();
|
|
}
|
|
}
|